Technical data

Table Of Contents
Reference 39
Agilent Infiniium 9000 Series Oscilloscopes Programmer's Reference 1307
BIN Header Format
"File Header" on page 1307
"Waveform Header" on page 1307
"Waveform Data Header" on page 1309
"Example Program for Reading Binary Data" on page 1310
File Header
There is only one file header in a binary file. The file header consists of
the following information.
Cookie Two byte characters, AG, which indicates that the file is in the Agilent
Binary Data file format.
Version Two bytes which represent the file version.
File Size An integer (4 byte signed) which is the number of bytes that are in the
file.
Number of
Waveforms
An integer (4 byte signed) which is the number of waveforms that are
stored in the file.
Waveform Header
The waveform header contains information about the type of waveform
data that is stored following the waveform data header which is located
after each waveform header. Because it is possible to store more than one
waveform in the file, there will be a waveform header and a waveform
data header for each waveform.
Header Size An integer (4 byte signed) which is the number of bytes in the header.
Waveform Type An integer (4 byte signed) which is the type of waveform that is stored in
the file. The follow shows what each value means.
0 = Unknown
1 = Normal
2 = Peak Detect
3 = Average
4 = Horizontal Histogram
5 = Vertical Histogram
6 = Logic