Readbinary – Инструкция по эксплуатации EXFO FTB-500 (Window XP)

Страница 306

Advertising
background image

Свойства и события COM

294

FTB-500

Свойства

ReadBinary

Description

With this method you can retrieve data from the
device output queue in a binary format.

Syntax

object.ReadBinary

Parameter(s)

None.

Response(s)

An array of bytes.

Notes

This method must be used in conjunction with the
Write method. Always ensure that a query has
been previously sent before attempting to read a
response from the output queue.
To properly set the data format, send the following
command (using the Write method):
FORM:DATA<wsp>PACKED
The retrieved data does not need to be converted
to a numeric format before you can use it in
calculations, for example.
To help you know the actual length of the
retrieved data, it 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.

Advertising