Agilent Technologies Printer Accessories 1670G ユーザーズマニュアル

ページ / 626
Transferring the Logic Analyzer Configuration
This program uses the 
SYSTem:SETup
? query to transfer the logic analyzer
configuration to your controller.  This program also uses the 
SYSTem:SETup
command to transfer a logic analyzer configuration from the controller back
to the logic analyzer.  The 
SYSTem:SETup
 command differs from the
SYSTem:DATA
 command because it only transfers the configuration and not
the acquired data.
10    ! ****************** SETUP COMMAND AND QUERY EXAMPLE ********************
20    !                           for the Agilent 1670G-series
30    !
40    ! **************** INITIALIZE GPIB DEFAULT ADDRESS *********************
50    !
60    REAL Address
70    Address=707
80    ASSIGN @Comm TO Address
90    !
100   CLEAR SCREEN
110   !
120   ! ************* INTITIALIZE VARIABLE FOR NUMBER OF BYTES ***************
130   ! The variable "Numbytes" contains the number of bytes in the buffer.
140   !
150   REAL Numbytes
160   Numbytes=0
170   !
180   ! *********************** SEND THE SETUP QUERY **************************
190   OUTPUT @Comm;":SYSTEM:HEADER ON"
200   OUTPUT @Comm;":SYSTEM:LONGFORM ON"
210   OUTPUT @Comm;":SELECT 1"
220   OUTPUT @Comm;":SYSTEM:SETUP?"
230   !
240   ! ******************** ENTER THE BLOCK SETUP HEADER *********************
250   ! Enter the block setup header in the proper format.
260   !
270   ENTER @Comm USING "#,15A";Header$
280   PRINT Header$;
290   ENTER @Comm USING "#,A";Always_8$
300   PRINT Always_8$;
310   ENTER @Comm USING "#,8A";Numbytes$
320   PRINT Numbytes$
330   Numbytes=VAL(Numbytes$)
Programming Examples
Transferring the Logic Analyzer Configuration
43–14