Specifications
Introduction to GPIB Drivers
3-5
Currently, only two limitations exist. xPC Target does not support string data
types as input and output data types. Also, you must know the size and order
of data returned from a read command.
For more information on this example, see “Creating GPIB Message
Structures” on page 3-11
.Address
.Command -
‘rd 16’
.SendData -
.InputPorts
.RecData -
‘%f’
.RdLength -
20
.OutputPorts -
[1]
.OutputDataTypes -
{double}
.Wait
.Timeout -
0.05
GPIB_Send_Receive
GPIB_Send_Receive(1)
GPIB_Send_Receive(1) ...GPIB_Send_Receive(n)
.Address -
16
.Command -
‘wrt’
.SendData -
‘:read?’
.InputPorts
.RecData
.RdLength
.OutputPorts
.OutputDataTypes
.Wait
.Timeout -
0.05