Function
Enables ATN and transmits command (interface message).
Format
Ret = GpibSendCommands ( Id, CmdArray )
Parameter
Id [ short ]
Specifies DevID or EqpID.
Whichever it specifies, operation does not change.
CmdArray [ short * ]
Sets array of commands to transmit.
0 to 255 |
Sets value of command |
-1 |
Must be used as end of array. |
Return Value
Ret [ Long ]
0 |
Normality completion |
10001 |
Invalid ID was specified |
10002 |
Driver can not be called |
12712 |
Pointer to CmdArray is NULL |
12740 |
Asynchronous function is running now |
22722 |
When device is used as master (controller), functions for slave (non-controller) are executed |
22741 |
Forcibly terminated by GpibStopAsync |
22742 |
Terminates by forcible termination key |
22744 |
TimeOut |
22745 |
No connected device (GPIB error) |
Initial Value
None
Example
Transmits UNT and UNL.
C |
short CmdArray[255]; CmdArray[0] = 0x5f; CmdArray[1] = 0x3f; CmdArray[2] = -1; Ret = GpibSendCommands ( Id, CmdArray ); |
Remark
The actual number of transmitted data can be acquirable by GpibGetStatus function.
See Also