Vaisala HMP240 User Manual

Page 82

Advertising
background image

HMP240
Appendix 1: Serial commands

M210300en

80

FORM

Setting the output format

FORM <cr>

"xxx...xxx"

? zzz...zzz <cr>

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 <lf>

\r

carriage return <cr>

\t

horizontal tabulation <ht> or <tab>

\\

\

For example:

format

output

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

100.00 +99.99 <cr>

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

15.2 'C <cr><lf>

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

46.9 %RH +10.8 'C <cr>

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 <cr>

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

>FORM \<cr>

Note. only one space before \ and none

after

or

>FORM <cr>
"xxx...xxx"
?\<cr>

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

>FORM <cr>
"xxx...xxx"

Advertising