[docs]classDataCls:"""Data commands group definition. 3 total commands, 1 Subgroups, 2 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("data",core,parent)@propertydefdpattern(self):"""dpattern commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_dpattern'):from.DpatternimportDpatternClsself._dpattern=DpatternCls(self._core,self._cmd_group)returnself._dpattern
[docs]defget_dselection(self)->str:"""SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:DATA:DSELection \n Snippet: value: str = driver.source.bb.lora.fconfiguration.data.get_dselection() \n Selects an existing data list file from the default directory or from the specific directory. The data list is only used, if the data source DLIS is selected. \n :return: dselection: string Filename incl. file extension or complete file path """response=self._core.io.query_str('SOURce<HwInstance>:BB:LORA:FCONfiguration:DATA:DSELection?')returntrim_str_response(response)
[docs]defset_dselection(self,dselection:str)->None:"""SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:DATA:DSELection \n Snippet: driver.source.bb.lora.fconfiguration.data.set_dselection(dselection = 'abc') \n Selects an existing data list file from the default directory or from the specific directory. The data list is only used, if the data source DLIS is selected. \n :param dselection: string Filename incl. file extension or complete file path """param=Conversions.value_to_quoted_str(dselection)self._core.io.write(f'SOURce<HwInstance>:BB:LORA:FCONfiguration:DATA:DSELection {param}')
# noinspection PyTypeChecker
[docs]defget_value(self)->enums.DataSourceA:"""SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:DATA \n Snippet: value: enums.DataSourceA = driver.source.bb.lora.fconfiguration.data.get_value() \n Sets the data source for the payload data in a LoRa frame. \n :return: data: ZERO| ONE| PATTern| PN9| PN11| PN15| PN16| PN20| PN21| PN23| DLISt PNxx The pseudo-random sequence generator is used as the data source. There is a choice of different lengths of random sequence. DLISt A data list is used. The data list is selected with the aid of command SOURce:BB:LORA:DATA DLISt. ALL0 | ALL1 Internal 0 or 1 data is used. PATTern Internal data is used. The bit pattern for the data is defined with the aid of command :SOURce:BB:LORA:DATA PATTern. """response=self._core.io.query_str('SOURce<HwInstance>:BB:LORA:FCONfiguration:DATA?')returnConversions.str_to_scalar_enum(response,enums.DataSourceA)
[docs]defset_value(self,data:enums.DataSourceA)->None:"""SCPI: [SOURce<HW>]:BB:LORA:FCONfiguration:DATA \n Snippet: driver.source.bb.lora.fconfiguration.data.set_value(data = enums.DataSourceA.DLISt) \n Sets the data source for the payload data in a LoRa frame. \n :param data: ZERO| ONE| PATTern| PN9| PN11| PN15| PN16| PN20| PN21| PN23| DLISt PNxx The pseudo-random sequence generator is used as the data source. There is a choice of different lengths of random sequence. DLISt A data list is used. The data list is selected with the aid of command SOURce:BB:LORA:DATA DLISt. ALL0 | ALL1 Internal 0 or 1 data is used. PATTern Internal data is used. The bit pattern for the data is defined with the aid of command :SOURce:BB:LORA:DATA PATTern. """param=Conversions.enum_scalar_to_str(data,enums.DataSourceA)self._core.io.write(f'SOURce<HwInstance>:BB:LORA:FCONfiguration:DATA {param}')
defclone(self)->'DataCls':"""Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group"""new_group=DataCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group