beautypg.com

Outputx, Send senddatabytes sendlist syntax – Measurement Computing GPIB-488.2 User Manual

Page 42

background image

3-24

IOtech to Associated MCC APIs

986992

GPIB 488.2 Porting Guide

IOtech GPIB Commands

Associated MCC GPIB 488.2 Command(s)

OutputX

Send

SendDataBytes

SendList

Syntax

OutputX

LONG WINAPI OutputX(DevHandleT devHandle, LPBYTE
data, DWORD count, BOOL last, BOOL forceAddr,
TermT *term,BOOL reserved, LPDWORD compStat);

Send

Send (int board, short address,char data[],long

count, int eotmode)

SendDataBytes

SendDataBytes(int board, char data[], long count,

int eotmode)

Send List

SendList(int board, short addresslist[], char

data[], long count, int eotmode)

Usage Notes

OutputX is no longer to be used. The OutputX command was used to send data to an
interface or external device. The Remote Enable (REN) line was first asserted, if Driver488 was
the System Controller and AutoRemote was enabled. Then, if a device address (with optional
secondary address) was specified, Driver488 was addressed to Talk and the specified device
was addressed to Listen. If no address was specified, then Driver488 had to have been
previously configured to send data, either as a result of a preceding OutputX command, or as
the result of a Send command. Terminators were automatically appended to the output data as
specified.
Also See: Output, OutputN, OutputMore,
and OutputNMore, which are short-form

versions of the OutputX function.


Send
is used to send 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. The 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 example, GPIB board 0 sends an identification query to the GPIB device at address 3.
End of data is signalled by an EOI.

Example:

Send (0, 3, "*IDN?", DABend)