Specifications
3 GPIB I/O Support
3-18
GPIB Send/Receive Message Structure
Below is a description of the possible fields for the send/receive message
structure. The order of the message fields in a message does not matter.
However, the field names are case-sensitive.
Message
Fields
Description
Address Sets the GPIB address for the device being accessed. After
the GPIB address is set, the remaining messages use this
address value until another message changes the address
value. Default value =
0.
The keyword ADDR is equal to the value in the message
field
.Address. You can use this keyword in the message
fields
.Command or .SendData to replace the numerical value
of the GPIB address. For example, you can write
GPIB_Send_Receive(1).Command=’wrt 16’;
Or you can write
GPIB_Send_Receive(1).Address = 16;
GPIB_Send_Receive(1).Command=’wrt ADDR’;
Command GPIB command sent to a GPIB device. Default value = ’’.
SendData Data sent with the GPIB command. Default value =
’’.
InputPorts Defines the input ports for the driver block. Data from the
input ports is sent to the GPIB device with the message
fields
.Command and .SendData. Default value = []. The
highest number you enter determines the number of input
ports on the driver block.
For example, the following message creates two input ports
on the driver block, and passes data from the input ports to
the
read command.
GPIB_Send_Receive(1).Command = ’rd #%d %d’;
GPIB_Send_Receive(1).InputPorts= [1 2];