Places a specified GPIB device in a remote mode of operation and addresses the device as a listener.
[ lStatus = ] GpibRemote ( lBoardDevice )
The GpibRemote procedure syntax has the following parts:
Name |
Type |
Description |
lStatus |
Long |
Status |
lBoardDevice |
Val Long |
Board or Device address |
This function places the specified device in a remote mode of operation (under program control). If lBoardDevice specifies only a board address the Remote Enable (REN) line will be asserted but no device will be addressed.
The hexadecimal format of lBoardDevice is as follows:
lBoardDevice = 0xBBPPSS
Where:
BB |
Board address (1 - 9) |
PP |
Device Primary address (0 - 31) - 0 if not used (bus address), 31 used for Primary address of 0 |
SS |
Device Secondary address (0 - 31) - 0 if not used (bus address or device without Secondary address), 31 used for Secondary address of 0 |
When PPSS is 0, lBoardDevice specifies a board address.
The value of lBoardDevice may be obtained using the GetDriverAddress function.
This function returns 0 on success and -1 on failure.
The following command places a function generator in remote mode:
GpibRemote(GetDriverAddress("FuncGen"))