[docs]classTimeCls:"""Time commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("time",core,parent)# noinspection PyTypeChecker
[docs]defget_mode(self)->enums.ArbMultCarrSigDurMod:"""SCPI: [SOURce<HW>]:BB:ARBitrary:MCARrier:TIME:MODE \n Snippet: value: enums.ArbMultCarrSigDurMod = driver.source.bb.arbitrary.mcarrier.time.get_mode() \n Selects the mode for calculating the resulting signal period of the multi-carrier waveform. The resulting period is always calculated for all carriers in the carrier table irrespective of their state (ON/OFF) . \n :return: mode: USER| LONG| SHORt| LCM """response=self._core.io.query_str('SOURce<HwInstance>:BB:ARBitrary:MCARrier:TIME:MODE?')returnConversions.str_to_scalar_enum(response,enums.ArbMultCarrSigDurMod)
[docs]defset_mode(self,mode:enums.ArbMultCarrSigDurMod)->None:"""SCPI: [SOURce<HW>]:BB:ARBitrary:MCARrier:TIME:MODE \n Snippet: driver.source.bb.arbitrary.mcarrier.time.set_mode(mode = enums.ArbMultCarrSigDurMod.LCM) \n Selects the mode for calculating the resulting signal period of the multi-carrier waveform. The resulting period is always calculated for all carriers in the carrier table irrespective of their state (ON/OFF) . \n :param mode: USER| LONG| SHORt| LCM """param=Conversions.enum_scalar_to_str(mode,enums.ArbMultCarrSigDurMod)self._core.io.write(f'SOURce<HwInstance>:BB:ARBitrary:MCARrier:TIME:MODE {param}')
[docs]defget_value(self)->float:"""SCPI: [SOURce<HW>]:BB:ARBitrary:MCARrier:TIME \n Snippet: value: float = driver.source.bb.arbitrary.mcarrier.time.get_value() \n Sets the user-defined signal period. \n :return: time: float Range: 0 to 1E9, Unit: s """response=self._core.io.query_str('SOURce<HwInstance>:BB:ARBitrary:MCARrier:TIME?')returnConversions.str_to_float(response)
[docs]defset_value(self,time:float)->None:"""SCPI: [SOURce<HW>]:BB:ARBitrary:MCARrier:TIME \n Snippet: driver.source.bb.arbitrary.mcarrier.time.set_value(time = 1.0) \n Sets the user-defined signal period. \n :param time: float Range: 0 to 1E9, Unit: s """param=Conversions.decimal_value_to_str(time)self._core.io.write(f'SOURce<HwInstance>:BB:ARBitrary:MCARrier:TIME {param}')