Spectrum

SCPI Commands :

CONFigure:GPRF:MEASurement<Instance>:SPECtrum:AMODe
CONFigure:GPRF:MEASurement<Instance>:SPECtrum:REPetition
CONFigure:GPRF:MEASurement<Instance>:SPECtrum:TOUT
CONFigure:GPRF:MEASurement<Instance>:SPECtrum:SCOunt
class SpectrumCls[source]

Spectrum commands group definition. 22 total commands, 3 Subgroups, 4 group commands

get_amode() AveragingMode[source]
# SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:AMODe
value: enums.AveragingMode = driver.configure.spectrum.get_amode()

Defines how the R&S CMW calculates the AVERage traces from the current results.

return:

averaging_mode: LINear | LOGarithmic

get_repetition() Repeat[source]
# SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:REPetition
value: enums.Repeat = driver.configure.spectrum.get_repetition()

Specifies the repetition mode of the measurement. The repetition mode specifies whether the measurement is stopped after a single shot or repeated continuously. Use CONFigure:..:MEAS<i>:…:SCOunt to determine the number of measurement intervals per single shot.

return:

repetition: SINGleshot | CONTinuous SINGleshot: single-shot measurement CONTinuous: continuous measurement

get_scount() int[source]
# SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:SCOunt
value: int = driver.configure.spectrum.get_scount()

Specifies the statistic count of the measurement. The statistic count is equal to the number of measurement intervals per single shot.

return:

statistic_count: numeric Number of measurement intervals Range: 1 to 1000

get_timeout() float[source]
# SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:TOUT
value: float = driver.configure.spectrum.get_timeout()

Defines a timeout for the measurement. The timer is started when the measurement is initiated via a READ or INIT command. It is not started if the measurement is initiated manually. When the measurement has completed the first measurement cycle (first single shot) , the statistical depth is reached and the timer is reset. If the first measurement cycle has not been completed when the timer expires, the measurement is stopped. The measurement state changes to RDY. The reliability indicator is set to 1, indicating that a measurement timeout occurred. Still running READ, FETCh or CALCulate commands are completed, returning the available results. At least for some results, there are no values at all or the statistical depth has not been reached. A timeout of 0 s corresponds to an infinite measurement timeout.

return:

tcd_timeout: numeric Unit: s

set_amode(averaging_mode: AveragingMode) None[source]
# SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:AMODe
driver.configure.spectrum.set_amode(averaging_mode = enums.AveragingMode.LINear)

Defines how the R&S CMW calculates the AVERage traces from the current results.

param averaging_mode:

LINear | LOGarithmic

set_repetition(repetition: Repeat) None[source]
# SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:REPetition
driver.configure.spectrum.set_repetition(repetition = enums.Repeat.CONTinuous)

Specifies the repetition mode of the measurement. The repetition mode specifies whether the measurement is stopped after a single shot or repeated continuously. Use CONFigure:..:MEAS<i>:…:SCOunt to determine the number of measurement intervals per single shot.

param repetition:

SINGleshot | CONTinuous SINGleshot: single-shot measurement CONTinuous: continuous measurement

set_scount(statistic_count: int) None[source]
# SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:SCOunt
driver.configure.spectrum.set_scount(statistic_count = 1)

Specifies the statistic count of the measurement. The statistic count is equal to the number of measurement intervals per single shot.

param statistic_count:

numeric Number of measurement intervals Range: 1 to 1000

set_timeout(tcd_timeout: float) None[source]
# SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:TOUT
driver.configure.spectrum.set_timeout(tcd_timeout = 1.0)

Defines a timeout for the measurement. The timer is started when the measurement is initiated via a READ or INIT command. It is not started if the measurement is initiated manually. When the measurement has completed the first measurement cycle (first single shot) , the statistical depth is reached and the timer is reset. If the first measurement cycle has not been completed when the timer expires, the measurement is stopped. The measurement state changes to RDY. The reliability indicator is set to 1, indicating that a measurement timeout occurred. Still running READ, FETCh or CALCulate commands are completed, returning the available results. At least for some results, there are no values at all or the statistical depth has not been reached. A timeout of 0 s corresponds to an infinite measurement timeout.

param tcd_timeout:

numeric Unit: s

Cloning the Group

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

Subgroups