Set data format – Measurement Computing TempScan/1100 User Manual
Page 228

A-32 API Command Reference
889897
TempScan / MultiScan User’s Manual
F
- Set Data Format
TYPE
System
EXECUTION
Deferred
SYNTAX
Fengr,
format
Configure the input and output formats.
engr
converts the raw data to the engineering units with which you prefer to
work. Valid options are:
0
- degrees Celsius (default),
1
- degrees
Fahrenheit,
2
- degrees Rankine,
3
- degrees Kelvin, and
4
- Volts.
format
places the readings in a format with which you prefer to work. Valid
options are:
0
- Engineering Units (default),
1
- Binary (Low/High Byte),
2
- Binary (High/Low Byte), and
3
- Counts (ASCII).
F?
Query the data format.
DESCRIPTION
The Set Data Format (
F
) command configures the input and output data format for data transmissions with the
unit, and requires two arguments. The first argument
engr
refers to the specific Engineering Units if applicable,
and the second argument
format
refers to the reading format.
The following tables list the valid data input and output formats for Engineering Units, Binary, and Counts.
Data Input Formats
Data Type
Engineering Units
Binary
Counts
High/Low Byte
Low/High Byte
Temperature
xxxx.xx
°C
xxxx.xx
°F
xxxx.xx
°R
xxxx.xx
°K
(Interpreted as
Engineering Units)
±xxxxx
Volts
+xxx.xxxxxxx
±xxxxx
Time/Date
(Absolute)
hh:mm:ss.t,
MM/DD/YY
(Interpreted as
Engineering Units)
(Interpreted as
Engineering Units)
Timebase
(Scan Interval)
hh:mm:ss.t
(Interpreted as
Engineering Units)
(Interpreted as
Engineering Units)
Data Output Formats
Data Type
Engineering Units
Binary
Counts
High/Low Byte
Low/High Byte
Temperature
xxxx.xx
°C
xxxx.xx
°F
xxxx.xx
°R
xxxx.xx
°K
H/L L/H ±xxxxx
Volts
+xxx.xxxxxxx H/L
L/H
±xxxxx
Time/Date Stamp
(Absolute)
hh:mm:ss.mil,
MM/DD/YY
hmstuvwMDY
(Interpreted as
Engineering Units)
Time/Date Stamp
(Relative)
+hh:mm:ss.mil,
DDDDDDD
hmstuvwDEF
(Interpreted as
Engineering Units)
Timebase
(Scan Interval)
hh:mm:ss.t
(Interpreted as
Engineering Units)
(Interpreted as
Engineering Units)
Data Input & Output Legend
Legend
Engineering Units
Binary
Counts
x
= ASCII digit
hh
= hours
mm
= minutes
ss
= seconds
t
= tenths
mil
= milliseconds
MM
= months
DD
= days
YY
= years
DDDDDDD
= days
H
= high order byte
L
= low order byte
h
= hours
m
= minutes
s
= seconds
tuvw
= microseconds
M
= months
D
= days
Y
= years
DEF
= days
x
= ASCII digit