SYSTem:LOCK:REQuest?
Syntax
SYSTem:LOCK:REQuest?
Description
This command requests a lock of the current I/O interface. This provides a mechanism by which you can
lock the instrument's configuration or cooperatively share the instrument with other computers.
Remarks
l Lock requests can be nested and each request will increase the lock count by 1. For every request, you
will need a release from the same I/O interface (see SYSTem:LOCK:RELease command).
l Instrument locks are handled at the I/O interface level (GPIB, USB, LAN, etc.) and you are responsible
for all coordination between threads and/or programs on that interface.
l When a request is granted, only I/O sessions from the present interface will be allowed to change the
state of the instrument. From the other I/O interfaces, you can query the state of the instrument but no
measurement configuration changes or measurements are allowed.
l Locks from LAN sessions will be automatically released when a LAN disconnect is detected.
l When a lock is granted, Bit 10 in the Standard Operation Register will be set (see STATus:OPERa-
tion:CONDition? command). In addition, the entire instrument front panel, including the Local key, will
be locked out while a lock is in place ("KEYBOARD LOCKED" is displayed).
Return Format
The query returns +1 if the lock request is granted or +0 if denied because another interface owns the
lock.
Example
The following example requests a lock of the current I/O interface.
SYST:LOCK:REQ?
Typical Response: +1
See Also
SYSTem:LOCK:NAME?
SYSTem:LOCK:OWNer?
SYSTem:LOCK:RELease
Keysight 53220A/53230A Programmer's Reference 453
SYSTem:LOCK:REQuest?