beautypg.com

Vaisala HMP228 User Manual

Page 61

background image

HMP228 Transmitters

M210282en-A

Appendix 1: Serial commands

55

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
.

\aa..aa\

water activity

\TT..TT\

temperature

\uu..uu\

unit according to the preceding variable

\n

line feed

\r

carriage return

\t

horizontal tabulation or

\\

\

For example:

format

output

\a.aaa \ \+TT.TT\\r

0.123 +99.99

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

15.2 'C

\a.aaa\ \+DD.D\ \uu\\r

0.123 +10.8 'C

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

aw: \a.aaa\ T: \+TT.TT\\r

aw: 0.54 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"
?\a.aaa\\t\TTT.T\\r\n

The output is then:

0.474 22.4