HP (Hewlett-Packard) 16501A Sander User Manual


 
Transferring the Mainframe Configuration
This program uses the SYSTem:SETup? query to transfer the configuration
of the mainframe to your controller. This program also uses the
SYSTem:SETup command to transfer a mainframe configuration from the
controller back to the mainframe. The configuration data will set up the
mainframe according to the data. It is useful for getting configurations for
setting up the mainframe by the controller. This command and query differs
from the SYSTem:DATA? command and query because it only transfers the
configuration and not the acquired data. Because the mainframe, by itself,
does not acquire data the SYSTem:DATA? command and query is only
useful for modules.
10 ! ****************** SETUP COMMAND AND QUERY EXAMPLE ********************
20 ! for the HP 16500C/16501A Logic Analysis System
30 !
40 ! ********************* CREATE TRANSFER BUFFER *************************
50 ! Create a buffer large enough for the block data.
55 !
60 ASSIGN @Buff TO BUFFER [170000]
70 !
80 ! **************** INITIALIZE HPIB DEFAULT ADDRESS *********************
90 !
100 REAL Address
110 Address=707
120 ASSIGN @Comm TO Address
130 !
140 CLEAR SCREEN
150 !
160 ! ************* INTITIALIZE VARIABLE FOR NUMBER OF BYTES *****************
170 ! The variable "Numbytes" contains the number of bytes in the buffer.
180 !
190 REAL Numbytes
200 Numbytes=0
210 !
220 ! ************** RE-INITIALIZE TRANSFER BUFFER POINTERS ******************
230 !
240 CONTROL @Buff,3;1
250 CONTROL @Buff,4;0
260 !
Programming Examples
Transferring the Mainframe Configuration
15–3