IBLOC
Board-Level/Device-Level
Purpose
Go to Local.
Format
C
unsigned long ibloc (int ud)
Visual Basic
CALL ibloc (ud%)
or
status% = illoc (ud%)
Interactive Control (Usage Notes)
ibloc
Input
ud | Board or device descriptor |
Output
Function Return | The value of Ibsta |
Description
Board-Level
ibloc places the board in local mode if it is not in a lockout state. The board is in a lockout state if LOK appears in the status word Ibsta. If the board is in a lockout state, the call has no effect.
The ibloc function is used to simulate a front panel RTL (Return to Local) switch if the computer is used as an instrument.
Device-Level
Unless the REN (Remote Enable) line has been unasserted with the IbcSRE option in ibconfig, all device-level calls automatically place the specified device in remote program mode. ibloc is used to move devices temporarily from a remote program mode to a local mode until the next device function is executed on that device.
Possible Errors
EBUS | Device-level: No devices are connected to the GPIB. |
ECIC | Device-level: The access board is not CIC. See Device-Level Calls and Bus Management. |
EDVR | The NI-488.2 driver is either configured incorrectly or is not properly installed. |
EHDL | ud is invalid or out of range. |
ELCK | The requested operation could not be performed because of an existing lock by another process. |
ENEB | The interface is not installed or is not properly configured. |
EOIP | Asynchronous I/O is in progress. |