Slist#

SCPI Commands :

SLISt:CLEar:[ALL]
SLISt:[LIST]
Commands in total: 9
Subgroups: 4
Direct child commands: 2
clear_all ( ) → None
clear_all_with_opc ( opc_timeout_ms: int = -1 ) → None
# SLISt:CLEar:[ALL]
driver.slist.clear_all()
driver.slist.clear_all_with_opc(opc_timeout_ms = 3000)

Removes all entries of R&S NRP power sensors using the VISA communication protocol (USB or LAN) from the sensor mapping list. Does not affect sensors communicating over USB legacy protocol.

clear_all_with_opc() does the same as clear_all(), but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout to set the timeout value.

Parameters:

opc_timeout_ms – Maximum time to wait in milliseconds, valid only for this call.

get_list_py ( ) → List[str]
# SLISt:[LIST]
value: List[str] = driver.slist.get_list_py()

Returns a list of all detected sensors in a comma-separated string.

Returns:

sensor_list: Each entry contains information on the sensor type, serial number and interface. The order of the entries does not correspond to the order the sensors are displayed in the NRP Sensor Mapping dialog.

Cloning the Group

# Create a copy of the original group, that exists independently
slist_copy = driver.slist.clone()

Subgroups