[docs]classSerialCls:"""Serial commands group definition. 4 total commands, 0 Subgroups, 4 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("serial",core,parent)# noinspection PyTypeChecker
[docs]defget_baud(self)->enums.Rs232BdRate:"""SCPI: SYSTem:COMMunicate:SERial:BAUD \n Snippet: value: enums.Rs232BdRate = driver.system.communicate.serial.get_baud() \n Defines the baudrate for the serial remote control interface. \n :return: baud: 2400| 4800| 9600| 19200| 38400| 57600| 115200 """response=self._core.io.query_str('SYSTem:COMMunicate:SERial:BAUD?')returnConversions.str_to_scalar_enum(response,enums.Rs232BdRate)
[docs]defset_baud(self,baud:enums.Rs232BdRate)->None:"""SCPI: SYSTem:COMMunicate:SERial:BAUD \n Snippet: driver.system.communicate.serial.set_baud(baud = enums.Rs232BdRate._115200) \n Defines the baudrate for the serial remote control interface. \n :param baud: 2400| 4800| 9600| 19200| 38400| 57600| 115200 """param=Conversions.enum_scalar_to_str(baud,enums.Rs232BdRate)self._core.io.write(f'SYSTem:COMMunicate:SERial:BAUD {param}')
# noinspection PyTypeChecker
[docs]defget_parity(self)->enums.Parity:"""SCPI: SYSTem:COMMunicate:SERial:PARity \n Snippet: value: enums.Parity = driver.system.communicate.serial.get_parity() \n Enters the parity for the serial remote control interface. \n :return: parity: NONE| ODD| EVEN """response=self._core.io.query_str('SYSTem:COMMunicate:SERial:PARity?')returnConversions.str_to_scalar_enum(response,enums.Parity)
[docs]defset_parity(self,parity:enums.Parity)->None:"""SCPI: SYSTem:COMMunicate:SERial:PARity \n Snippet: driver.system.communicate.serial.set_parity(parity = enums.Parity.EVEN) \n Enters the parity for the serial remote control interface. \n :param parity: NONE| ODD| EVEN """param=Conversions.enum_scalar_to_str(parity,enums.Parity)self._core.io.write(f'SYSTem:COMMunicate:SERial:PARity {param}')
[docs]defget_resource(self)->str:"""SCPI: SYSTem:COMMunicate:SERial:RESource \n Snippet: value: str = driver.system.communicate.serial.get_resource() \n Queries the visa resource string for the serial remote control interface. This string is used for remote control of the instrument. \n :return: resource: string """response=self._core.io.query_str('SYSTem:COMMunicate:SERial:RESource?')returntrim_str_response(response)
# noinspection PyTypeChecker
[docs]defget_sbits(self)->enums.Count:"""SCPI: SYSTem:COMMunicate:SERial:SBITs \n Snippet: value: enums.Count = driver.system.communicate.serial.get_sbits() \n Defines the number of stop bits for the serial remote control interface. \n :return: sbits: 1| 2 """response=self._core.io.query_str('SYSTem:COMMunicate:SERial:SBITs?')returnConversions.str_to_scalar_enum(response,enums.Count)
[docs]defset_sbits(self,sbits:enums.Count)->None:"""SCPI: SYSTem:COMMunicate:SERial:SBITs \n Snippet: driver.system.communicate.serial.set_sbits(sbits = enums.Count._1) \n Defines the number of stop bits for the serial remote control interface. \n :param sbits: 1| 2 """param=Conversions.enum_scalar_to_str(sbits,enums.Count)self._core.io.write(f'SYSTem:COMMunicate:SERial:SBITs {param}')