beautypg.com

Error, Syntax, No equivalent commands – Measurement Computing GPIB-488.2 User Manual

Page 29

background image

GPIB 488.2 Porting Guide

986992

IOtech to Associated MCC APIs

3-11

RcvRespMsg

is used to read data from a previously addressed device. You must address the

appropriate devices as Listeners/Talkers prior to calling this routine. The input data string is not
terminated with a zero byte.
In the following example, a previously addressed Listener receives 50 bytes of data from a
previously addressed Talker. The transmission is terminated when EOI is detected.
Example:

char data[50];

RcvRespMsg(0, data, 50, STOPend)

Receive

is used to read data from a GPIB device. The input data string is not terminated with a

zero byte.
The following example instructs to receive 50 bytes of data from the specified talker (device at
address 2, connected to board). EOI signals the end of the message.
Example:

char data[50];

Receive (0, 2, data, 50, STOPend);

IOtech GPIB Commands

Associated MCC GPIB 488.2 Command(s)

Error

No Equivalent Commands

Syntax

INT WINAPI Error(DevHandleT devHandle, BOOL display);

Usage Notes

The Error command, no longer to be used, enabled or disabled automatic on-screen display of
Driver488 error messages. Specifying ON enabled the error message display, while specifying
OFF disabled it.
Similar functionality can only be achieved by coding efforts, of such magnitude, that they are
beyond the scope of this document.