GpibSendTrigger


Function

Performs transfer of command (GET) starts the matter decided by slave device.

Format

Ret = GpibSendTrigger (  Id )

Parameter

Id [ VB.NET: Short ][ C, C++: short ][ C#: short ]

When using DevID:

Specifies the address of slave device that transmits GET for listener in GpibSetAddrInfo function.

Specifies -1 for talker.

(Please use this when transmitting GET command to plural slave devices at the same time)

When using EqpID:

Transmits GET command to address of slave device specified in EqpID.

Return Value

Ret [ VB.NET: Integer ][ C, C++: long ][ C#: int ]

 

0

Normality completion

10001

Invalid ID was specified

10002

Driver can not be called

12771

Address specified in GpibSetAddrInfo is wrong

12790

Asynchronous function is running now

22773

When device is used as master (controller), functions for slave (non-controller) are executed

22791

Forcibly terminated by GpibStopAsync

22792

Terminates by forcible termination key

22794

TimeOut

22795

No connected device (GPIB error)

22797

Being used in other process

Initial Value

None

Remarks

 

Example

When using DevID:

Transmits GET command to slave devices at the same time whose addresses are 1 and 2.

C

short Talker, ListenerArray[15];

Talker = -1;

ListenerArray[0] = 1;

ListenerArray[1] = 2;

ListenerArray[2] = -1;

Ret = GpibSetAddrInfo ( DevId, Talker, ListenerArray );

Ret = GpibSendTrigger ( DevId );

 

When using EqpID:

Transmits GET command to address of slave device specified in EqpID.

C

Ret = GpibSendTrigger ( EqpId );

See Also