beautypg.com

Sendcmd, Sendcmd sendcmds, Syntax – Measurement Computing GPIB-488.2 User Manual

Page 53

background image

GPIB 488.2 Porting Guide

986992

IOtech to Associated MCC APIs

3-35

IOtech GPIB Command

Associated MCC GPIB 488.2 Command(s)

SendCmd SendCmds

Syntax

SendCmd

INT WINAPI SendCmd(DevHandleT devHandle,

LPBYTE commands, DWORD count);

SendCmds

SendCmds (int board, char commands[],

unsigned long count)


Usage Notes

SendCmd is no longer to be used. The command was used to send a specified string of bytes
with Attention (ATN) asserted, causing the data to be interpreted as IEEE 488 command bytes.

SendCmds - This routine is useful in situations where specialized GPIB command sequences
are called for. In the following example, the GPIB board (at 0) simultaneously triggers the
GPIB devices at addresses 8 and 9 and quickly puts them in local mode.

Example:

SendCmds0, "\x3F\x40\x28\x29\x04\x01",6);

Also see IOtech’s OutputX, SendData