SYSTem:LOCK:NAME?

From Keysight 34970A/34972A

SYSTem:LOCK:NAME?

This functionality is available on the 34972A only.

Syntax

SYSTem:LOCK:NAME?

Description

This query returns the I/O interface name of the I/O session sending the query. You can use the returned name to determine whether the I/O session owns the interface lock by comparing it to the value returned by SYSTem:LOCK:OWNer?.

Remarks

  • Use this command to determine the lock name for the interface that you are using. Then use the SYSTem:LOCK:OWNer? command to determine which interface, if any, has the lock. Once you have executed both of these commands, you can compare the results to determine whether you have the lock.
  • This query is sometimes confused with the SYSTem:LOCK:OWNer? query. The difference is that SYSTem:LOCK:OWNer? returns the name of the interface that has the lock, and SYSTem:LOCK:NAME? returns the name of the current interface, regardless of whether it has the lock.

Return Format

The query returns USB or LAN<IP Address> indicating the I/O interface being used by the querying computer. The IP address is four integers separated by periods, such as 156.140.79.29, and there is no space between the word LAN and the <IP Address>. Therefore, a typical LAN with an IP address would be returned as LAN156.140.79.29.

Example

The following query returns the name of the I/O interface in use by the querying computers.

SYST:LOCK:NAME?

Typical Response: "LAN169.254.149.35"

See Also

SYSTem:LOCK:OWNer?

SYSTem:LOCK:RELease

SYSTem:LOCK:REQuest?