Trigger, Trigger -28 – Measurement Computing GPIB-488 User Manual
Page 96

Chapter 4
GPIB 488.2 Library Reference
4-28
GPIB-488
Trigger
Triggers one device.
Syntax
C
Trigger(int board, short address)
Parameters
board
is an integer which identifies the GPIB board to used for this operation. In most
applications, this value is 0.
address
is an integer representing the GPIB address of the device to trigger. If
address
=
NOADDR
then all Listeners already addressed are triggered.
Returns
ibsta
will contain a 16-bit status word as described in Appendix B,
.
iberr
will contain an error code, if an error occurred.
Usage Notes
When this call is executed, the GPIB GET (Group Execute Trigger) message is sent to the
specified device.
To trigger several GPIB devices, use
TriggerList
.
Example
This example triggers a device connected to board 0 whose primary GPIB address is 6 and
secondary address is 12.
C
Trigger (0, MakeAddr (6, 12));