
SCPI Command Set
:SYSTem:LOCK:HAVE?
This query returns the current lock state of the specified task.
Syntax
:SYSTem:LOCK:HAVE? ACQuisition
Parameter
ACQuisition
Input Data Type
Character
Response
1 | 0
1 – Have the lock
0 – Does not have the lock
Output Data Type
Boolean
*RST State
N/A
Examples
:SYST:LOCK:HAVE? ACQ
:SYSTem:LOCK:REQuest?
This query attempts to attain the lock on the WSA5000 for a specific task, such as data
acquisition. The query returns 1 when lock is successful or 0 if it fails.
Attaining a lock is equivalent to having the sole ownership for that task. This prevents
multiple connected applications from doing the same task that would result in an
erroneous operation or feedback from the WSA5000. The WSA5000's system lock
ownership works in the following manner:
•
The first application to connect to WSA5000 will automatically have the lock. The
next application will need to perform this query request to attain the lock.
•
When there is only one application connected (or the last one remained), that
application will automatically has the lock.
•
The last application that requested successfully has the lock until another
application attained it.
Any application that doesn't have the specific lock will not be able to perform that task.
Note:
When a TCP/IP socket connection is not exited properly, that socket might
continue to exist in the WSA5000 server for a few minutes. This could affect a situation
when only one application is used to connect to the WSA5000 as reconnection by that
application might not get the lock. This application would then need to request the lock.
Syntax
:SYSTem:LOCK:REQuest? ACQuisition
Parameter
ACQuisition
Input Data Type
Character
Response
1 | 0
1 – Successfully locked
0 – Failed to lock
Output Data Type
Boolean
*RST State
N/A
Example
:SYST:LOCK:REQ? ACQ
ThinkRF WSA5000 Wireless Signal Analyzer Programmer's Guide
51