EasyManua.ls Logo

Anritsu ML2400A Series - Page 150

Anritsu ML2400A Series
275 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
NOTE
If the fre quency is greater than the max i mum fre quency
in the ta ble, the off set value from the max i mum ta ble fre -
quency is used. If the fre quency is less than the min i mum
fre quency in the ta ble, the off set from the min i mum ta ble
fre quency is used. The fre quency com par i sons start from
the be gin ning of the ta ble; if the en try is 0 Hz, this is
counted as the end of the ta ble.
Query: OFFTBL? <s>
Re turned
String: OFFTBL <s>,<val>
OFFTBR Out put an off set ta ble
SEN SOR
Syn tax: OFFTBR <val>
val: 1 to 5
Re marks: Out puts the se lected off set ta ble. The re turned string is con structed as
fol lows:
OFFTBR #<length><number_of_bytes>,<ele ment1<ele ment2><ele -
mentn>
Where <length> is the char ac ter size of the <number_of_bytes> field
and
<number_of_bytes> is the number of bytes which make up the string
af ter the comma (,). For ex am ple:
OFFTBR #41600,<data...>
4 = number of char ac ter to read next for the data length
1600 = One thou sand and six hun dred bytes of data to read in, rep re -
sent ing 200 ele ments placed one af ter the other with out com mas. Each
<ele ment> is made up of 8 bytes; the first four bytes are the Fre quency
and the sec ond four bytes are the cor re spond ing dB value for the Fre -
quency. For ex am ple:
<data_ele ment1><data_ele ment2><data_ele ment3> is equal to:
<freq1><dB1><freq2><dB2><freq3><dB3>... is equal to:
<4bytes1><4bytes1><4bytes2><4bytes2><4bytes3><4bytes3>
The four byte bi nary data can be con verted back to a float ing point num -
ber by di vid ing the four byte LONG num ber by 1024. For ex am ple:
FFFFD711 be comes –10479, then di vided be come –10.234. 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.
OFFTBU Up dates an off set ta ble
SEN SOR
Syn tax: OFFTBU <val>,<bytes>,<bi nary_data...>
ML2400A OM 6-63
GPIB OPERATION ML24XXA NATIVE COMMANDS

Table of Contents

Related product manuals