R3132 Series Spectrum Analyzer Operation Manual
4.2.10 Example Programs
4-51
4.2.10.2 Sample Programs for Reading Data
In order to output measurement data or settings, use the "xx?" command. This ensures that the data is read
when the device is in the talker mode. Available output formats are listed in the table below. The delimiter
positioned at the end of data can be specified from 5 types (refer to "Others" in the GPIB code list). Once
set, "xx?" command continues to operate until it is changed.
<Supplement>
1= Sign (a space for plus sign; "-" for minus sign)
2= Mantissa of data
3= Exponent of data
4= Delimiter (CR/LF in initial setting can be changed with "DLn" code.)
Output Format
Frequency
±
D.DDDDDDDDDDD E
±
DD CR LF
↑
↑
↑
↑
1
2
3
4
•
Data size (1 to 3) is a maximum of 19 bytes, and the unit is Hz.
Example
Specify "CF?" and output as center frequency.
Level
±
D.DDDDDDD E
±
DD CR LF
↑
↑
↑
↑
1
2
3
4
•
Data size (1 to 3) is a maximum of 19 bytes, and the unit corresponds to each UNIT setting.
Example
Specify "ML?" and output as marker level.
Time
±
D.DDD E
±
DD CR LF
↑
↑
↑
↑
1
2
3
4
•
Data size (1 to 3) is a maximum of 19 bytes, and the unit is sec.
Example
Specify "SW?" and output sweep time.
DDDD CR LF
↑
↑
2
4
•
The maximum byte of the data size corresponds to the maximum size of the output data.
Example
ON/OFF status or Averaging count is output.