GpibEnableRemote


Function

Sets the destination device to remote state.

 

Format

Ret = GpibEnableRemote (  Id )

 

Parameter

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

When using DevID:

Specifies the address of slave device to change to remote mode for listener in GpibSetAddrInfo function.

Specifies -1 for talker.

(Please use this when setting plural slave devices to remote state at the same time)

When using EqpID:

Sets the address of slave device specified in EqpID to remote state.

 

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

10671

No address specifying information (only for using DevID)

10690

Asynchronous function is running now

20673

When it was not a master (controller), communication accompanied by address was performed.

20692

Terminates by forcible termination key

20694

TimeOut

20695

No connected device (GPIB error)

20697

Being used in other process

 

Initial Value

None

 

Example

When using DevID:

Sets the slave devices to remote state 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 = GpibEnableRemote ( DevId );

 

When using EqpID:

Sets the slave device specified in EqpID to remote state.

C

Ret = GpibEnableRemote ( EqpId );

 

Remark

 

 

See Also

GpibChangeREN | GpibSetAddrInfo