beautypg.com

EXFO IQS-600 Integrated Qualification System User Manual

Page 277

background image

Data Types

Integrated Qualification System

269

Applicable Data Types for Input—IEEE 488.2

This data type is used to send blocks of arbitrary 8-bit information
when you need to work with large amounts of data.

The actual length of the data that you send has the following structure:

The first byte contains the # character.

The byte that immediately follows contains the number of
subsequent bytes that you have to check to obtain the total length.

Note: If you use a zero as the first digit (#0), it has to be followed by a

to allow the device to detect the
end of the . This also triggers
immediate termination of the message.

For example, if you send the following data (here, values are expressed
in decimal instead of binary for easier readability):

# 2 1 3 7 6 8 9 2 ...

The byte that immediately follows the # contains 2, which means that
you would have to read the two following bytes to know the length (in
bytes) of the retrieved data. The bytes indicate 1 and 3. The length is
then 13 bytes. The actual response begins at byte number 5, in this
case.