beautypg.com

Vaisala HMP240 User Manual

Page 82

background image

HMP240
Appendix 1: Serial commands

M210300en

80

FORM

Setting the output format

FORM

"xxx...xxx"

? zzz...zzz

xxx...xxx

=

old format

zzz...zzz

=

new format

The FORM command sets the format of the outputs generated in RUN state
and by SEND command. Please note that capital and small letters have dif-
ferent meanings
.

\UU..UU\

relative humidity

\TT..TT\

temperature

\DD..DD\

dewpoint temperature

\AA..AA\

absolute humidity

\XX..XX\

mixing ratio

\WW..WW\ wet bulb temperature
\dd..d\

dewpoint difference

\uu..uu\

unit according to the preceding variable

\n

line feed

\r

carriage return

\t

horizontal tabulation or

\\

\

For example:

format

output

\UUU.UU\ \+TT.TT\\r

100.00 +99.99

\TTT.T\ \uu\\r\n

15.2 'C

\UUU.U\ \uuu\\+DD.D\ \uu\\r

46.9 %RH +10.8 'C

Any text can be written in the command and it appears in the output. For ex-
ample:

RH: \UUU.U\ T: \+TT.TT\\r

RH: 54.0 T: +25

The format can be deleted by giving \ as a parameter:

>FORM \

Note. only one space before \ and none

after

or

>FORM
"xxx...xxx"
?\

An example of a format suitable for use in Microsoft Excel spreadsheets:

>FORM
"xxx...xxx"