ListPy

SCPI Commands :

[SOURce<HW>]:LIST:CATalog
[SOURce<HW>]:LIST:DELete
[SOURce<HW>]:LIST:DELete:ALL
[SOURce<HW>]:LIST:FREE
[SOURce<HW>]:LIST:MODE
[SOURce<HW>]:LIST:RESet
[SOURce<HW>]:LIST:RMODe
[SOURce<HW>]:LIST:RUNNing
[SOURce<HW>]:LIST:SELect
class ListPyCls[source]

ListPy commands group definition. 32 total commands, 7 Subgroups, 9 group commands

delete(filename: str) None[source]
# SCPI: [SOURce<HW>]:LIST:DELete
driver.source.listPy.delete(filename = 'abc')

Deletes the specified list. Refer to ‘Accessing files in the default or in a specified directory’ for general information on file handling in the default and in a specific directory.

param filename

string Filename or complete file path; file extension is optional.

delete_all() None[source]
# SCPI: [SOURce<HW>]:LIST:DELete:ALL
driver.source.listPy.delete_all()
Deletes all lists in the set directory.

INTRO_CMD_HELP: This command can only be executed, if:

  • No list file is selected.

  • List mode is disabled.

delete_all_with_opc(opc_timeout_ms: int = - 1) None[source]
# SCPI: [SOURce<HW>]:LIST:DELete:ALL
driver.source.listPy.delete_all_with_opc()
Deletes all lists in the set directory.

INTRO_CMD_HELP: This command can only be executed, if:

  • No list file is selected.

  • List mode is disabled.

Same as delete_all, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value.

param opc_timeout_ms

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

get_catalog() List[str][source]
# SCPI: [SOURce<HW>]:LIST:CATalog
value: List[str] = driver.source.listPy.get_catalog()

Queries the available list files in the specified directory.

return

catalog: string List of list filenames, separated by commas

get_free() int[source]
# SCPI: [SOURce<HW>]:LIST:FREE
value: int = driver.source.listPy.get_free()

Queries the amount of free memory (in bytes) for list mode lists.

return

free: integer Range: 0 to INT_MAX

get_mode() RsSmw.enums.AutoStepIndex[source]
# SCPI: [SOURce<HW>]:LIST:MODE
value: enums.AutoStepIndex = driver.source.listPy.get_mode()

Sets the list mode. The instrument processes the list according to the selected mode and trigger source. See LIST:TRIG:SOUR AUTO, SING or EXT for the description of the trigger source settings.

return

mode: AUTO| STEP AUTO Each trigger event triggers a complete list cycle. STEP Each trigger event triggers only one step in the list processing cycle. The list is processed in ascending order. INDex The trigger event triggers the entry of the selected index in the list.

get_rmode() RsSmw.enums.LmodRunMode[source]
# SCPI: [SOURce<HW>]:LIST:RMODe
value: enums.LmodRunMode = driver.source.listPy.get_rmode()

Selects the run mode for processing the list.

return

rmode: LEARned| LIVE LEARned Generates the signal by replaying the previously learned and saved data from the temporary memory. LIVE Generates the signal by processing the list directly.

get_running() bool[source]
# SCPI: [SOURce<HW>]:LIST:RUNNing
value: bool = driver.source.listPy.get_running()

Queries the current state of the list mode.

return

state: 1| ON| 0| OFF 1 Signal generation based on the list mode is active.

get_select() str[source]
# SCPI: [SOURce<HW>]:LIST:SELect
value: str = driver.source.listPy.get_select()

Selects or creates a data list in list mode. If the list with the selected name does not exist, a new list is created.

return

filename: string Filename or complete file path; file extension can be omitted.

reset() None[source]
# SCPI: [SOURce<HW>]:LIST:RESet
driver.source.listPy.reset()

Jumps to the beginning of the list.

reset_with_opc(opc_timeout_ms: int = - 1) None[source]
# SCPI: [SOURce<HW>]:LIST:RESet
driver.source.listPy.reset_with_opc()

Jumps to the beginning of the list.

Same as reset, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value.

param opc_timeout_ms

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

set_mode(mode: RsSmw.enums.AutoStepIndex) None[source]
# SCPI: [SOURce<HW>]:LIST:MODE
driver.source.listPy.set_mode(mode = enums.AutoStepIndex.AUTO)

Sets the list mode. The instrument processes the list according to the selected mode and trigger source. See LIST:TRIG:SOUR AUTO, SING or EXT for the description of the trigger source settings.

param mode

AUTO| STEP AUTO Each trigger event triggers a complete list cycle. STEP Each trigger event triggers only one step in the list processing cycle. The list is processed in ascending order. INDex The trigger event triggers the entry of the selected index in the list.

set_rmode(rmode: RsSmw.enums.LmodRunMode) None[source]
# SCPI: [SOURce<HW>]:LIST:RMODe
driver.source.listPy.set_rmode(rmode = enums.LmodRunMode.LEARned)

Selects the run mode for processing the list.

param rmode

LEARned| LIVE LEARned Generates the signal by replaying the previously learned and saved data from the temporary memory. LIVE Generates the signal by processing the list directly.

set_select(filename: str) None[source]
# SCPI: [SOURce<HW>]:LIST:SELect
driver.source.listPy.set_select(filename = 'abc')

Selects or creates a data list in list mode. If the list with the selected name does not exist, a new list is created.

param filename

string Filename or complete file path; file extension can be omitted.

Cloning the Group

# Create a clone of the original group, that exists independently
group2 = driver.source.listPy.clone()

Subgroups