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: List[int]: integer Range: 0 to 23

  • Minute: int: integer Range: 0 to 59

  • Second: int: integer Range: 0 to 59

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| OFF| 0| NTP| ON| 1| GPTP NONE Sets the date and time according to the selected timezone, see method RsAreg800.System.Time.Zone.catalog and method RsAreg800.System.Time.Zone.value. NTP Sets the date and time derived from the network time protocol. To select the NTP time server, use the commands method RsAreg800.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: List[int], minute: int, second: int) None[source]
# SCPI: SYSTem:TIME
driver.system.time.set(hour = [1, 2, 3], 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:

integer Range: 0 to 23

param minute:

integer Range: 0 to 59

param second:

integer Range: 0 to 59

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| OFF| 0| NTP| ON| 1| GPTP NONE Sets the date and time according to the selected timezone, see method RsAreg800.System.Time.Zone.catalog and method RsAreg800.System.Time.Zone.value. NTP Sets the date and time derived from the network time protocol. To select the NTP time server, use the commands method RsAreg800.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