IBLOC
Forces the specified board/device to go to local program mode.
Syntax
C (
gpib-32.dll
C (
gpib488.dll
Parameters
is an integer containing the device or board handle.
boarddev
Returns
will contain a 16-bit status word as described in Appendix B, IBSTA.
Ibsta
will contain an error code, if an error occurred.
Iberr
Usage Notes
This routine is used to place boards or devices temporarily in local mode. If this routine
specifies a device, the following GPIB commands are sent:
•
Talk address of the access board
•
Secondary address of the access board
•
Unlisten (UNL)
•
Listen address of the device
•
Secondary address of the device (as necessary)
•
Go to Local (GTL)
If this routine specifies a board, the board is placed in a local state by sending the Return to
Local (RTL) message, if it is not locked in remote mode. The LOK bit of the status word
indicates whether the board is in a lockout state. The
front panel RTL switch if the computer is used as an instrument.
Example
Return GPIB board 1 to local state.
C
GPIB-488
)
ibloc (int boarddev)
)
ibloc (int boarddev)
int gpib1;
gpib1 = ibfind("GPIB1");
ibloc (gpib1);
Chapter 3
function is used to simulate a
ibloc
3-31
GPIB 488.1 Library Reference
Programming Reference Manual