[docs]classOffTimeCls:"""OffTime commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("offTime",core,parent)
[docs]defget_points(self)->int:"""SCPI: [SOURce<HW>]:PULM:TRAin:OFFTime:POINts \n Snippet: value: int = driver.source.pulm.train.offTime.get_points() \n Queries the number of on and off time entries and repetitions in the selected list. \n :return: points: integer Range: 0 to INT_MAX """response=self._core.io.query_str('SOURce<HwInstance>:PULM:TRAin:OFFTime:POINts?')returnConversions.str_to_int(response)
[docs]defget_value(self)->str:"""SCPI: [SOURce<HW>]:PULM:TRAin:OFFTime \n Snippet: value: str = driver.source.pulm.train.offTime.get_value() \n Enters the pulse on/off times values in the selected list. \n :return: off_time: Offtime#1{, Offtime#2, ...} | binary block data List of comma-separated numeric values or binary block data, where: The list of numbers can be of any length. In binary block format, 8 (4) bytes are always interpreted as a floating-point number with double accuracy. See method RsSmbv.FormatPy.data for details. The maximum length is 2047 values. Range: 0 ns to 5 ms """response=self._core.io.query_str('SOURce<HwInstance>:PULM:TRAin:OFFTime?')returntrim_str_response(response)
[docs]defset_value(self,off_time:str)->None:"""SCPI: [SOURce<HW>]:PULM:TRAin:OFFTime \n Snippet: driver.source.pulm.train.offTime.set_value(off_time = 'abc') \n Enters the pulse on/off times values in the selected list. \n :param off_time: Offtime#1{, Offtime#2, ...} | binary block data List of comma-separated numeric values or binary block data, where: The list of numbers can be of any length. In binary block format, 8 (4) bytes are always interpreted as a floating-point number with double accuracy. See method RsSmbv.FormatPy.data for details. The maximum length is 2047 values. Range: 0 ns to 5 ms """param=Conversions.value_to_quoted_str(off_time)self._core.io.write(f'SOURce<HwInstance>:PULM:TRAin:OFFTime {param}')