Format Specifier For Ascii Responses; Format Specifier For Binary Responses - Thermo Scientific 49i Instruction Manual

Uv photometric o3 analyzer
Table of Contents

Advertisement

C-Link Protocol Commands
Record Layout Definition
Format Specifier for ASCII
Responses
Format Specifier for
Binary Responses
B-44
Model 49i Instruction Manual
In addition to these, the Erec Layout contains:
A format specifier for producing the front-panel displays
In operation, values are read in using either the ASCII or binary format
specifiers and converted to uniform internal representations (32-bit floats or
32-bit integers). These values are converted into text for display on the
screen using the format specifier for the front-panel display. Normally, the
specifier used to parse a particular datum from the input stream will be
strongly related to the specifier used to display it (e.g., all of the floating
point inputs will be displayed with an 'f' output specifier, and all of the
integer inputs will be displayed with a 'd' specifier).
The first line of the Layout response is the scanf-like parameter list for
parsing the fields from an ASCII ERec response. Parameters are separated by
spaces and the line is terminated by a \n (the normal line separator
character). Valid fields are:
%s - parse a string
%d - parse a decimal number
%ld - parse a long (32-bit) decimal number
%f - parse a floating point number
%x - parse a hexadecimal number
%lx - parse a long (32-bit) hex number
%* - ignore the field
Note Signed versus unsigned for the integer values does not matter; it is
handled automatically.
The second line of the Layout response is the binary parameter list for
parsing the fields from a binary response. Parameters MUST be separated by
spaces, and the line is terminated by a '\n'. Valid fields are:
t - parse a time specifier (2 bytes)
D - parse a date specifier (3 bytes)
i - ignore one 8-bit character (1 byte)
e - parse a 24-bit floating point number (3 bytes: n/x)
E - parse a 24-bit floating point number (3 bytes: N/x)
f - parse a 32-bit floating point number (4 bytes)
c - parse an 8-bit
C - parse an 8-bit unsigned number (1 byte)
n - parse a 16-bit
N - parse a 16-bit unsigned number (2 bytes)
m - parse a 24-bit
M - parse a 24-bit unsigned number (3 bytes)
l - parse a 32-bit
L - parse a 32-bit unsigned number (4 bytes)
signed number (1 byte)
signed number (2 bytes)
signed number (3 bytes)
signed number (4 bytes)
Thermo Fisher Scientific

Advertisement

Table of Contents
loading

Table of Contents