beautypg.com

EXFO IQS-600 Integrated Qualification System User Manual

Page 288

background image

Data Types

280

IQS-600

Applicable Data Types for Output —IEEE 488.2

This data type is used by a device to return blocks of 8-bit binary
information with a fixed and predetermined length.

The actual length of the retrieved data 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 know the total length.

For example, if you receive this response (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 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 be
13 bytes. The actual response begins at byte number 5, in this case.

Examples: #14,
#3004

where “” stands for data byte.