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: 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 RsSmbv.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() RsSmbv.enums.TimeProtocol[source]
# SCPI: SYSTem:TIME:PROTocol
value: enums.TimeProtocol = driver.system.time.get_protocol()

Sets the date and time of the operating system.

return

time_protocol: OFF| NONE| 0| NTP| ON| 1 NONE Sets the date and time according to the selected timezone, see method RsSmbv.System.Time.Zone.catalog and method RsSmbv.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 RsSmbv.System.Ntp.hostname and SYSTem:NTP:STATe.

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 RsSmbv.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: RsSmbv.enums.TimeProtocol) None[source]
# SCPI: SYSTem:TIME:PROTocol
driver.system.time.set_protocol(time_protocol = enums.TimeProtocol._0)

Sets the date and time of the operating system.

param time_protocol

OFF| NONE| 0| NTP| ON| 1 NONE Sets the date and time according to the selected timezone, see method RsSmbv.System.Time.Zone.catalog and method RsSmbv.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 RsSmbv.System.Ntp.hostname and SYSTem:NTP:STATe.

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