SendCmds
Purpose
Send GPIB command bytes.
Format
C
void SendCmds (int boardID, const void *buffer, size_t count)
|
Visual Basic
CALL SendCmds (boardID%, buffer$)
|
Input
boardID
|
The interface number |
buffer
|
Command bytes to be sent |
count
|
Number of bytes to be sent |
Description
SendCmds sends count command bytes from buffer over the GPIB as command bytes (interface messages). The number of command bytes transferred is returned in the global function Ibcnt. Refer to the IEEE 488 command messages for defined interface messages.
Use command bytes to configure the state of the GPIB, not to send instructions to GPIB devices. Use Send or SendList to send device-specific instructions.
Possible Errors
EABO
|
The I/O timeout period expired before all of the command bytes were sent. |
ECIC
|
The interface is not the Controller-In-Charge; see SendIFC. |
EDVR
|
The NI-488.2 driver is either configured incorrectly or is not properly installed. |
EHDL
|
boardID is out of range. |
ELCK
|
The requested operation could not be performed because of an existing lock by another process. |
ENEB
|
The interface is not installed or is not properly configured. |
ENOL
|
No devices are connected to the GPIB. |
EOIP
|
Asynchronous I/O is in progress. |