beautypg.com

Set/show output formatting – Vaisala HMT120 User Manual

Page 44

background image

User's Guide _______________________________________________________________________

42 ___________________________________________________________________ M211244EN-B

Set/show Output Formatting

After you have defined the quantities with the CALCS command, use the

FORM command to set the output format for SEND and R commands.

FORM<format>
where
format = A formatting string, which can consist of following fields:

“”

String constant

x.y

Value length modifier. x is numbers before dot

and y is numbers after dot.

Ux

Unit field length. U…U format is also supported.

Q

Quantity name (e.g. rh, t, td etc.)

#t or \t Tabulator

#r or \r Carriage return

#n or \n Line feed (new line)

Note 1. Quantity must be after x.y and Ux modifiers.

Note 2. There must be a space between parameters, #r#n or \r\n is not supported.

Note 3. Max. string length is 80 characters.

Note 4. If Ux parameter is not used, unit is not displayed.

Examples:

>form "RH= " 3.2 U2 rh #r #n

>send

RH= 32.16 %

>

>form "t=" 4.1 U3 t \t "rh=" 3.2 U2 rh \r \n

>send

t= 22.5 'C rh= 29.12 %

>

>form "t=" 4.1 U3 t \t "rh=" rh \r \n

>send

t= 22.3 'C rh= 29.5 %

>

>form 3.2 UUU "RH=" rh \t "T=" t \r \n

>send

RH= 27.99 % T= 23.34 'C

>

>form 3.3 rh " " t \r \n

>send

26.740 23.660

>

>form "->" "RH=" 3.2 U2 rh " " "T=" 3.1 U3 t #r #n

>send

->RH= 27.79 % T= 23.4 'C

>