Time

SCPI Commands :

SYSTem:TIME
SYSTem:TIME:LOCal
SYSTem:TIME:PROTocol
SYSTem:TIME:UTC
class TimeCls[source]

Time commands group definition. 12 total commands, 3 Subgroups, 4 group commands

class TimeStruct[source]

Response structure. Fields:

  • Hour: int: No parameter help available

  • Minute: int: No parameter help available

  • Second: int: No parameter help available

get() TimeStruct[source]
# SCPI: SYSTem:TIME
value: TimeStruct = driver.system.time.get()

Queries or sets the time for the instrument-internal clock. This is a password-protected function. Unlock the protection level 1 to access it. See method RsAreg800.System.Protect.State.set.

return:

structure: for return value, see the help for TimeStruct structure arguments.

get_local() str[source]
# SCPI: SYSTem:TIME:LOCal
value: str = driver.system.time.get_local()

No command help available

return:

pseudo_string: No help available

get_protocol() TimeProtocolWithGptp[source]
# SCPI: SYSTem:TIME:PROTocol
value: enums.TimeProtocolWithGptp = driver.system.time.get_protocol()

Sets the date and time of the operating system.

return:

time_protocol: - NONE: Sets the date and time according to the selected timezone, see :SYSTem:TIME:ZONE:CATalog? and :SYSTem:TIME:ZONE. - NTP: Sets the date and time derived from the network time protocol. To select the NTP time server, use the commands :SYSTem:NTP:HOSTname and :SYSTem:NTP:STATe. - GPTP: Sets the date and time derived from the generic precision time protocol (gPTP) .

get_utc() str[source]
# SCPI: SYSTem:TIME:UTC
value: str = driver.system.time.get_utc()

No command help available

return:

pseudo_string: No help available

set(hour: int, minute: int, second: int) None[source]
# SCPI: SYSTem:TIME
driver.system.time.set(hour = 1, minute = 1, second = 1)

Queries or sets the time for the instrument-internal clock. This is a password-protected function. Unlock the protection level 1 to access it. See method RsAreg800.System.Protect.State.set.

param hour:

No help available

param minute:

No help available

param second:

No help available

set_local(pseudo_string: str) None[source]
# SCPI: SYSTem:TIME:LOCal
driver.system.time.set_local(pseudo_string = 'abc')

No command help available

param pseudo_string:

No help available

set_protocol(time_protocol: TimeProtocolWithGptp) None[source]
# SCPI: SYSTem:TIME:PROTocol
driver.system.time.set_protocol(time_protocol = enums.TimeProtocolWithGptp._0)

Sets the date and time of the operating system.

param time_protocol:
  • NONE: Sets the date and time according to the selected timezone, see :SYSTem:TIME:ZONE:CATalog? and :SYSTem:TIME:ZONE.

  • NTP: Sets the date and time derived from the network time protocol. To select the NTP time server, use the commands :SYSTem:NTP:HOSTname and :SYSTem:NTP:STATe.

  • GPTP: Sets the date and time derived from the generic precision time protocol (gPTP) .

set_utc(pseudo_string: str) None[source]
# SCPI: SYSTem:TIME:UTC
driver.system.time.set_utc(pseudo_string = 'abc')

No command help available

param pseudo_string:

No help available

Cloning the Group

# Create a clone of the original group, that exists independently
group2 = driver.system.time.clone()

Subgroups