[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)
[docs]defset(self,level:enums.DiqUnit)->None:"""SCPI: INPut:DIQ:RANGe[:UPPer]:UNIT \n Snippet: driver.inputPy.diq.range.upper.unit.set(level = enums.DiqUnit.AMPere) \n Defines the unit of the full scale level. The availability of units depends on the measurement application you are using. Is only available if the optional 'Digital Baseband' interface is installed. \n :param level: DBM | DBPW | WATT | DBUV | DBMV | VOLT | DBUA | AMPere """param=Conversions.enum_scalar_to_str(level,enums.DiqUnit)self._core.io.write(f'INPut:DIQ:RANGe:UPPer:UNIT {param}')
# noinspection PyTypeChecker
[docs]defget(self)->enums.DiqUnit:"""SCPI: INPut:DIQ:RANGe[:UPPer]:UNIT \n Snippet: value: enums.DiqUnit = driver.inputPy.diq.range.upper.unit.get() \n Defines the unit of the full scale level. The availability of units depends on the measurement application you are using. Is only available if the optional 'Digital Baseband' interface is installed. \n :return: level: DBM | DBPW | WATT | DBUV | DBMV | VOLT | DBUA | AMPere"""response=self._core.io.query_str(f'INPut:DIQ:RANGe:UPPer:UNIT?')returnConversions.str_to_scalar_enum(response,enums.DiqUnit)