At first, you need to set the address of destination device to which to perform trigger, and then perform execution of trigger (GET).
When use Equipment
ID in data transmitting/receiving functions, trigger can be performed
without setting address because the ID contains address information of
destination device.
When use Device ID , It
is necessary to set address information with GpibSetAddrInfo
function because the ID does not contain address information.
Example:
Use Equipment ID |
- Single (Transmits GET command to slave device whose EqpID is specified.) |
Ret = GpibSendTrigger ( EqpId ); // Performs GET to device whose Equipment ID is specified. |
Use Device ID |
- Plural (Transmits GET command to slave devices whose addresses are 1 and 2 at the same time.) |
short Talker, ListenerArray[15]; Talker = -1; ListenerArray[0] = 1; // Sets address to 1 ListenerArray[1] = 2; // Sets address to 2 ListenerArray[2] = -1; // Specifies [-1] as terminal (It must be input at last of array for listener.) Ret = GpibSetAddrInfo ( DevId, Talker, ListenerArray ); // Sets address Ret = GpibSendTrigger ( DevId ); // Performs GET to specified slave devices |