Senddata, Senddata send senddatabytes sendlist syntax – Measurement Computing GPIB-488.2 User Manual
Page 54

3-36
IOtech to Associated MCC APIs
986992
GPIB 488.2 Porting Guide
IOtech GPIB Commands
Associated MCC GPIB 488.2 Command(s)
SendData Send
SendDataBytes
SendList
Syntax
SendData {
IOtech
}
INT WINAPI SendData(DevHandleT devHandle,
LPBYTE data, DWORD count);
Send {
MCC
}
Send (int board, short address,
char data[],long count, int eotmode)
SendDataBytes {
MCC
} SendDataBytes(int board, char data[],
long count, int eotmode)
SendList {
MCC
}
SendList(int board, short addresslist[],
char data[], long count, int eotmode)
Usage Notes
SendData – No longer to be used. This command provided byte-by-byte control of data
transfers and had great flexibility. The command specified exactly which operations Driver488
was to execute.
Send is used to sends data to one GPIB device. When this routine is executed, the specified
GPIB board is addressed as a Talker, the designated GPIB device is addressed as a Listener and
the number of bytes (specified by count) in data is sent.
Values for eotmode are as follows. These constants are defined in the header file.
o NLend — Send NL (Line Feed) with EOI after last data byte.
o DABend — Send EOI with the last data byte in the string.
o NULLend — Do not mark the end of the transfer.
In the following example, GPIB board 0 sends an identification query to the GPIB device at
address 3. End of data is signaled by an EOI.
Example:
Send (0, 3, "*IDN?", DABend)