R3131 Spectrum Analyzer Operation Manual
4.1 GPIB Remote Programming
4-39Aug 28/98
Example PC-12: Output data from memory A in binary format.
Example PC-13: Input data to memory A in ASCII format.
10 ISET IFC:ISET REN ’ Execute interface clear and remote enable.
20 DIM TR(501)
30 PRINT @8;”DL2DTG” ’ Set to negative detector.
40 PRINT @8;”TBA?” ’ Specify binary output from memory A.
50 WBYTE &H3F,&H5F, &H3E, &H48; ’ Cancel listener and address PC9801 to #30 as
60 ’ listener and this device to #8 as talker.
70 FOR I=0 TO 500
80 RBYTE;UP,LO ’ Repeat fetching data, high-order bytes for 1501
90 TR(I)=UP*256+LO ’ Points and then low-order bytes for 1001 points
100 PRINT I;”=”;TR(I)
110 NEXT I
120 WBYTE&H3F, &5F; ’ Cancel listener and talker.
130 STOP
140 END
10 ISET IFC:ISET REN ’ Execute interface clear and remote enable.
20 A=0:ST=3.14/100
30 PRINT @8;”AB TAA” ’ Specify ASCII input to memory A.
40 FOR I=0 TO 500
50 N=INT(SIN(A)*1000)+2000
60 A=A+ST
70 PRINT @8;N
80 NEXT I
90 PRINT @8;”AV” ’ A VIEW
100 STOP
110 END