Specifications

GPIB Simulink Block Reference
3-19
The first port is used to dynamically provide the length of
the receive string, while the second port provides the value
of the GPIB device.
RecData Format of the data received from the GPIB device. Default
value =
’’. The format of this statement is very similar to a
scanf statement. The read data is mapped to the output
ports defined in the field
.OutputPorts. If a negative output
port is given, the data is read in, but not sent to any output
port
For example, to read from a GPIB device with an address of
16, one floating- point number with a maximum number of
bytes of 20, and send the data to the first driver block
output, type the following
GPIB_Send_Receive(1).Command = ’rd #20 16’;
GPIB_Send_Receive(1).RecData = ’%f’;
GPIB_Send_Receive(1).OutputPorts = [1];
RdLength Defines the length of the data, in bytes, received with the
read command and defines the keyword LENGTH. Default
value =
0.
OutputPorts
Defines the output ports from the driver block. Data
received from a GPIB device with the
read command is sent
to the output ports. Default value =
[]. The highest
number you enter determines the number of output ports on
the driver block.
For example, to use output ports 1 and 2 on the driver block,
type
GPIB_Send_Receive.OutputPorts = [1 2];
Message
Fields
Description