[docs]classToaDataCls:"""ToaData commands group definition. 7 total commands, 2 Subgroups, 5 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("toaData",core,parent)@propertydefdate(self):"""date commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_date'):from.DateimportDateClsself._date=DateCls(self._core,self._cmd_group)returnself._date@propertydeftime(self):"""time commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_time'):from.TimeimportTimeClsself._time=TimeCls(self._core,self._cmd_group)returnself._time
[docs]defget_duration(self)->float:"""SCPI: [SOURce<HW>]:BB:GNSS:ADGeneration:GPS:TOAData:DURation \n Snippet: value: float = driver.source.bb.gnss.adGeneration.gps.toaData.get_duration() \n Sets the duration of the assistance data. \n :return: duration: float Range: 1E-3 to 5E3 """response=self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:ADGeneration:GPS:TOAData:DURation?')returnConversions.str_to_float(response)
[docs]defset_duration(self,duration:float)->None:"""SCPI: [SOURce<HW>]:BB:GNSS:ADGeneration:GPS:TOAData:DURation \n Snippet: driver.source.bb.gnss.adGeneration.gps.toaData.set_duration(duration = 1.0) \n Sets the duration of the assistance data. \n :param duration: float Range: 1E-3 to 5E3 """param=Conversions.decimal_value_to_str(duration)self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:ADGeneration:GPS:TOAData:DURation {param}')
[docs]defget_resolution(self)->float:"""SCPI: [SOURce<HW>]:BB:GNSS:ADGeneration:GPS:TOAData:RESolution \n Snippet: value: float = driver.source.bb.gnss.adGeneration.gps.toaData.get_resolution() \n Sets the resolution of the assistance data. \n :return: resolution: float Range: 1E-3 to 5 """response=self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:ADGeneration:GPS:TOAData:RESolution?')returnConversions.str_to_float(response)
[docs]defset_resolution(self,resolution:float)->None:"""SCPI: [SOURce<HW>]:BB:GNSS:ADGeneration:GPS:TOAData:RESolution \n Snippet: driver.source.bb.gnss.adGeneration.gps.toaData.set_resolution(resolution = 1.0) \n Sets the resolution of the assistance data. \n :param resolution: float Range: 1E-3 to 5 """param=Conversions.decimal_value_to_str(resolution)self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:ADGeneration:GPS:TOAData:RESolution {param}')
# noinspection PyTypeChecker
[docs]defget_tbasis(self)->enums.TimeBasis:"""SCPI: [SOURce<HW>]:BB:GNSS:ADGeneration:GPS:TOAData:TBASis \n Snippet: value: enums.TimeBasis = driver.source.bb.gnss.adGeneration.gps.toaData.get_tbasis() \n Determines the timebase used to enter the time of assistance data parameters. \n :return: time_basis: UTC| GPS| GST| GLO| BDT| NAV """response=self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:ADGeneration:GPS:TOAData:TBASis?')returnConversions.str_to_scalar_enum(response,enums.TimeBasis)
[docs]defset_tbasis(self,time_basis:enums.TimeBasis)->None:"""SCPI: [SOURce<HW>]:BB:GNSS:ADGeneration:GPS:TOAData:TBASis \n Snippet: driver.source.bb.gnss.adGeneration.gps.toaData.set_tbasis(time_basis = enums.TimeBasis.BDT) \n Determines the timebase used to enter the time of assistance data parameters. \n :param time_basis: UTC| GPS| GST| GLO| BDT| NAV """param=Conversions.enum_scalar_to_str(time_basis,enums.TimeBasis)self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:ADGeneration:GPS:TOAData:TBASis {param}')
[docs]defget_to_week(self)->int:"""SCPI: [SOURce<HW>]:BB:GNSS:ADGeneration:GPS:TOAData:TOWeek \n Snippet: value: int = driver.source.bb.gnss.adGeneration.gps.toaData.get_to_week() \n Enabled for GPS timebase ([:SOURce<hw>]:BB:GNSS:ADGeneration:GPS:TOAData:TBASis) . Determines the Time of Week (TOW) the assistance data is generated for. \n :return: tow: integer Range: -604800 to 604800 """response=self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:ADGeneration:GPS:TOAData:TOWeek?')returnConversions.str_to_int(response)
[docs]defset_to_week(self,tow:int)->None:"""SCPI: [SOURce<HW>]:BB:GNSS:ADGeneration:GPS:TOAData:TOWeek \n Snippet: driver.source.bb.gnss.adGeneration.gps.toaData.set_to_week(tow = 1) \n Enabled for GPS timebase ([:SOURce<hw>]:BB:GNSS:ADGeneration:GPS:TOAData:TBASis) . Determines the Time of Week (TOW) the assistance data is generated for. \n :param tow: integer Range: -604800 to 604800 """param=Conversions.decimal_value_to_str(tow)self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:ADGeneration:GPS:TOAData:TOWeek {param}')
[docs]defget_wnumber(self)->int:"""SCPI: [SOURce<HW>]:BB:GNSS:ADGeneration:GPS:TOAData:WNUMber \n Snippet: value: int = driver.source.bb.gnss.adGeneration.gps.toaData.get_wnumber() \n Enabled for GPS timebase ([:SOURce<hw>]:BB:GNSS:ADGeneration:QZSS:TOAData:TBASis) . Sets the week number (WN) the assistance data is generated for. \n :return: week_number: integer Range: 0 to 9999.0*53 """response=self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:ADGeneration:GPS:TOAData:WNUMber?')returnConversions.str_to_int(response)
[docs]defset_wnumber(self,week_number:int)->None:"""SCPI: [SOURce<HW>]:BB:GNSS:ADGeneration:GPS:TOAData:WNUMber \n Snippet: driver.source.bb.gnss.adGeneration.gps.toaData.set_wnumber(week_number = 1) \n Enabled for GPS timebase ([:SOURce<hw>]:BB:GNSS:ADGeneration:QZSS:TOAData:TBASis) . Sets the week number (WN) the assistance data is generated for. \n :param week_number: integer Range: 0 to 9999.0*53 """param=Conversions.decimal_value_to_str(week_number)self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:ADGeneration:GPS:TOAData:WNUMber {param}')
defclone(self)->'ToaDataCls':"""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=ToaDataCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group