Sweep

SCPI Commands :

[SOURce<HW>]:SWEep:GENeration
[SOURce<HW>]:SWEep:RESet:[ALL]
class SweepCls[source]

Sweep commands group definition. 36 total commands, 4 Subgroups, 2 group commands

get_generation() FreqSweepType[source]
# SCPI: [SOURce<HW>]:SWEep:GENeration
value: enums.FreqSweepType = driver.source.sweep.get_generation()

Selects frequency sweep type.

return:

sweep_type: STEPped| ANALog STEPped Performs a frequency sweep. ANALog Performs a continuous analog frequency sweep (ramp) , synchronized with the sweep time [:SOURcehw]:SWEep[:FREQuency]:TIME.

reset_all() None[source]
# SCPI: [SOURce<HW>]:SWEep:RESet:[ALL]
driver.source.sweep.reset_all()

Resets all active sweeps to the starting point.

reset_all_with_opc(opc_timeout_ms: int = -1) None[source]
# SCPI: [SOURce<HW>]:SWEep:RESet:[ALL]
driver.source.sweep.reset_all_with_opc()

Resets all active sweeps to the starting point.

Same as reset_all, but waits for the operation to complete before continuing further. Use the RsSmab.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_generation(sweep_type: FreqSweepType) None[source]
# SCPI: [SOURce<HW>]:SWEep:GENeration
driver.source.sweep.set_generation(sweep_type = enums.FreqSweepType.ANALog)

Selects frequency sweep type.

param sweep_type:

STEPped| ANALog STEPped Performs a frequency sweep. ANALog Performs a continuous analog frequency sweep (ramp) , synchronized with the sweep time [:SOURcehw]:SWEep[:FREQuency]:TIME.

Cloning the Group

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

Subgroups