[docs]classUnitCls:"""Unit commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("unit",core,parent)# noinspection PyTypeChecker
[docs]defget_time(self)->enums.UnitTimeSecMs:"""SCPI: [SOURce<HW>]:BB:BTOoth:UNIT:TIME \n Snippet: value: enums.UnitTimeSecMs = driver.source.bb.btooth.unit.get_time() \n Sets the time unit for remote control commands. \n :return: time: S| MS """response=self._core.io.query_str('SOURce<HwInstance>:BB:BTOoth:UNIT:TIME?')returnConversions.str_to_scalar_enum(response,enums.UnitTimeSecMs)
[docs]defset_time(self,time:enums.UnitTimeSecMs)->None:"""SCPI: [SOURce<HW>]:BB:BTOoth:UNIT:TIME \n Snippet: driver.source.bb.btooth.unit.set_time(time = enums.UnitTimeSecMs.MS) \n Sets the time unit for remote control commands. \n :param time: S| MS """param=Conversions.enum_scalar_to_str(time,enums.UnitTimeSecMs)self._core.io.write(f'SOURce<HwInstance>:BB:BTOoth:UNIT:TIME {param}')