R3131 Spectrum Analyzer Operation Manual
4.1 GPIB Remote Programming
Example PC-14: Input data to memory A in binary format.
10 ISET IFC:ISET REN ' Execute interface clear and remote
enable.
20 DIM DT(501)
30 A=0:ST=3.14/100
40 PRINT @8;"AB TBA"
50 FOR 1=0 TO 500
60 DI(I)=INT(COS(A)*1000+2000
70 A=A+ST
80 NEXT I
90
100
110
120
130
' Specify binary input to memory A.
Cancel listener and address PC9801 to
#30 as
talker and this device to #8 as listener.
WBYTE &H3F,&H5F,&H5E,&H28;DT(0)\256,DT(0) MOD 256
FOR 1=1 to 499
WBYTE;DT(I)\256,DT(I) MOD 256 ' Transfer data, first high-order bytes and
then low-order bytes.
140 NEXT I
150 WBYTE;DT(500)\256,DT(500)
MOD256@
160 PRINT @8;"AV"
170 STOP
180 END
4-40
, When the last data is input, send EOI sig-
nal.
, A VIEW