HP Sander 16500C manual Transferring the Mainframe Configuration

Models: Sander 16500C

1 252
Download 252 pages 12.2 Kb
Page 237
Image 237

Programming Examples

Transferring the Mainframe Configuration

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!

60ASSIGN @Buff TO BUFFER [170000]

70!

80! **************** INITIALIZE HPIB DEFAULT ADDRESS *********************

90!

100REAL Address

110Address=707

120ASSIGN @Comm TO Address

130!

140CLEAR SCREEN

150!

160! ************* INTITIALIZE VARIABLE FOR NUMBER OF BYTES *****************

170! The variable "Numbytes" contains the number of bytes in the buffer.

180!

190REAL Numbytes

200Numbytes=0

210!

220! ************** RE-INITIALIZE TRANSFER BUFFER POINTERS ******************

230!

240CONTROL @Buff,3;1

250CONTROL @Buff,4;0

260!

15–3

Page 237
Image 237
HP Sander 16500C manual Transferring the Mainframe Configuration