R3131 Spectrum Analyzer Operation Manual
4.1 GPIB Remote Programming
4-38 Aug 28/98
Trace data can be in input or output in either ASCII or binary format.
(1) Sample Programs for PC9801 series (GPIB address = 8)
Example PC-11: Output data from memory A in ASCII format.
I/O method Content
ASCII format DDDD
CR LF
Delimiter
Data for one point
Four-byte data without header
Input GPIB code Output GPIB code
Memory A TAA TAA?
Memory B TAB TAB?
Binary format DD
DD . . . . . . . . . . . . . . . . . . . . . DD DD + EOI
Delimiter
Low-order byte for 1st point Low-order byte for 501st point
High-order byte for 1st point High-order byte for 501st point
Each point data is divided into two parts: high-and low-order bytes. EOI signal is
attached at the end of the data for continuous 501 points.
Input GPIB code Output GPIB code
Memory A TBA TBA?
Memory B TAB TBB?
10 ISET IFC:ISET REN ’ Execute interface clear and remote enable.
20 DIM TR(501)
30 PRINT @8;”DL0DTG” ’ Set to negative detector.
40 PRINT @8;”TAA?” ’ Specify ASCII output from memory A.
50 FOR I=O TO 500
60 INPUT @8;TR(I) ’ Fetch data for 501 points.
70 PRINT I;”=”;TR(I)
80 NEXT I
90 END