Listen, Listen enableremote sendsetup, Syntax – Measurement Computing GPIB-488.2 User Manual
Page 34

3-16
IOtech to Associated MCC APIs
986992
GPIB 488.2 Porting Guide
IOtech GPIB Command
Associated MCC GPIB 488.2 Command
Listen EnableRemote
SendSetup
Syntax
Listen
INT WINAPI Listen(DevHandleT devHandle,
BYTE primary,BYTE secondary);
EnableRemote
EnableRemote(int board, short addresslist[])
SendSetup
SendSetup(int board, short addresslist [])
Usage Notes
Listen is no longer to be used. Was used to address an external device to Listen.
EnableRemote - When this routine is executed, the system controller asserts the Remote
Enable (REN) line and the Controller addresses the specified devices as listeners.
The command issued in the following example places devices at GPIB addresses 6 and 7
(connected to GPIB board) in remote mode.
Example:
short addresslist[3] = {6,7,NOADDR};
EnableRemote(0, addresslist);
SendSetup addresses a GPIB board as a Talker and the specified GPIB devices as Listeners.
Following this routine, you should call a routine such as SendDataBytes to actually
transfer the data.
The following example prepares GPIB board 0 to send data to GPIB devices 6 and 7.
Example:
short addresslist[3] = {6, 7, NOADDR};
SendSetup(0, addresslist);
Also see IOtech’s: MyListenAddr