Re marks: Out put the next com plete set of graph data to the GPIB in the long in te -
ger form of 1024 bits per dB as a def i nite length ar bi trary block re sponse
data. The C pro gram ming ex am ple 'Bi nary out put de cod ing' on page
6-136 shows how to ex tract the bi nary data. The re sponse form is as fol -
lows :
OGBD <#><length><num -
ber_of_bytes><data_byte_1><data_byte_2> ...<data_byte_n><\n>
<length> num ber of ASCII char ac ters that make up the
num ber_of_bytes value
<num ber_of_bytes> num ber of bytes of data con tained in rest of the
string
<data_byte_n> four of these val ues makes up the long in te ger.
For ex am ple: FF FF D1 64 = –11932 As it is based on 1024 per dB, di -
vide by 1024 to get the dB value (–11.652).
OGD Out put Graph Data
DATA OUT PUT
Syn tax: OGD
Re marks: Out puts the next com plete set of graph data.
The for mat is as fol lows:
OGD <number_of_ele ments>,<el e ment_1>,<ele ment_2>,<ele -
ment_n>...<\n>
The first number in the string is the number of ele ments to fol low, and
is al ways 200 for the ML2400A Se ries.
OGSD Out put Valid Sam ples Ar ray (power vs. time mode only)
DATA OUT PUT
Syn tax: OGSD
Re marks: A power verses time chart plots the read ings on a scroll ing chart from
left to right. If GRCP (con nect points) is on and no new data has been
re ceived for a time slot, the graph is plot ted with the same value as the
pre vi ous time slot but the data for that sam ple po si tion is not marked as
valid. This com mand will read out an ar ray of 1's and 0's that in di cate
whether the data for that time slot is valid. For ex am ple, '1' for valid
and '0' for con nect ing data only.
Be cause the time be tween read ing the data and read ing the valid sam ple
data may shift the valid sam ples out of sync with the graph read, it is
rec om mended that a 'HOLD ON' be issued be fore read ing the graph and
sam ple data, and a 'HOLD OFF' af ter. This will make sure that the sam -
ple data and the graph data agree.
If not in Power vs. Time mode, this com mand will set an ex e cu tion er ror.
ML2400A OM 6-65
GPIB OPERATION ML24XXA NATIVE COMMANDS