[docs]classUtcCls:"""Utc commands group definition. 3 total commands, 0 Subgroups, 3 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("utc",core,parent)# noinspection PyTypeChecker
[docs]classDateStruct(StructBase):# From ReadStructDefinition CmdPropertyTemplate.xml"""Structure for reading output parameters. Fields: \n - Year: int: integer Range: 1980 to 9999 - Month: int: integer Range: 1 to 12 - Day: int: integer Range: 1 to 31"""__meta_args_list=[ArgStruct.scalar_int('Year'),ArgStruct.scalar_int('Month'),ArgStruct.scalar_int('Day')]def__init__(self):StructBase.__init__(self,self)self.Year:int=Noneself.Month:int=Noneself.Day:int=None
[docs]defget_date(self)->DateStruct:"""SCPI: [SOURce<HW>]:BB:GNSS:TIME:STARt:UTC:DATE \n Snippet: value: DateStruct = driver.source.bb.gnss.time.start.utc.get_date() \n Queries the date at the simulation start time of the selected navigation standard. \n :return: structure: for return value, see the help for DateStruct structure arguments. """returnself._core.io.query_struct('SOURce<HwInstance>:BB:GNSS:TIME:STARt:UTC:DATE?',self.__class__.DateStruct())
[docs]defget_offset(self)->float:"""SCPI: [SOURce<HW>]:BB:GNSS:TIME:STARt:UTC:OFFSet \n Snippet: value: float = driver.source.bb.gnss.time.start.utc.get_offset() \n Queries the time offset between the time in the navigation standard and UTC. \n :return: utc_offset: float Range: -1E6 to 1E6 """response=self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:TIME:STARt:UTC:OFFSet?')returnConversions.str_to_float(response)
# noinspection PyTypeChecker
[docs]classTimeStruct(StructBase):# From ReadStructDefinition CmdPropertyTemplate.xml"""Structure for reading output parameters. Fields: \n - Hour: int: integer Range: 0 to 23 - Minute: int: integer Range: 0 to 59 - Second: float: float Range: 0 to 59.999"""__meta_args_list=[ArgStruct.scalar_int('Hour'),ArgStruct.scalar_int('Minute'),ArgStruct.scalar_float('Second')]def__init__(self):StructBase.__init__(self,self)self.Hour:int=Noneself.Minute:int=Noneself.Second:float=None
[docs]defget_time(self)->TimeStruct:"""SCPI: [SOURce<HW>]:BB:GNSS:TIME:STARt:UTC:TIME \n Snippet: value: TimeStruct = driver.source.bb.gnss.time.start.utc.get_time() \n Queries the simulation start time of the selected navigation standard. \n :return: structure: for return value, see the help for TimeStruct structure arguments. """returnself._core.io.query_struct('SOURce<HwInstance>:BB:GNSS:TIME:STARt:UTC:TIME?',self.__class__.TimeStruct())