Time
SCPI Commands :
SYSTem:TIME
SYSTem:TIME:LOCal
SYSTem:TIME:PROTocol
SYSTem:TIME:UTC
- Commands in total: 12Subgroups: 3Direct child commands: 4
- class TimeStruct[source]
Response structure. Fields:
1 Hour: int: integer Range: 0 to 23
2 Minute: int: integer Range: 0 to 59
3 Second: int: integer Range: 0 to 59
- get() TimeStruct[source]
# 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
RsSmw.system.protect.state.set().- Returns:
structure: for return value, see the help for TimeStruct structure arguments.
- get_local() str[source]
# SYSTem:TIME:LOCal value: str = driver.system.time.get_local()
No help available
- get_protocol() TimeProtocol[source]
# SYSTem:TIME:PROTocol value: enums.TimeProtocol = driver.system.time.get_protocol()
Sets the date and time of the operating system.
- Returns:
time_protocol: OFF | NONE | 0| NTP | ON | 1 NONE Sets the date and time according to the selected timezone, see method
RsSmw.system.time.zone.catalog()and methodRsSmw.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 methodRsSmw.system.ntp.hostname()and SYSTem:NTP:STATe.
- get_utc() str[source]
# SYSTem:TIME:UTC value: str = driver.system.time.get_utc()
No help available
- set(hour: int, minute: int, second: int) None[source]
# 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
RsSmw.system.protect.state.set().- Parameters:
hour – integer Range: 0 to 23
minute – integer Range: 0 to 59
second – integer Range: 0 to 59
- set_local(pseudo_string: str) None[source]
# SYSTem:TIME:LOCal driver.system.time.set_local(pseudo_string = 'abc')
No help available
- set_protocol(time_protocol: TimeProtocol) None[source]
# SYSTem:TIME:PROTocol driver.system.time.set_protocol(time_protocol = enums.TimeProtocol._0)
Sets the date and time of the operating system.
- Parameters:
time_protocol – OFF | NONE | 0| NTP | ON | 1 NONE Sets the date and time according to the selected timezone, see method
RsSmw.system.time.zone.catalog()and methodRsSmw.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 methodRsSmw.system.ntp.hostname()and SYSTem:NTP:STATe.
- set_utc(pseudo_string: str) None[source]
# SYSTem:TIME:UTC driver.system.time.set_utc(pseudo_string = 'abc')
No help available
Cloning the Group
# Create a copy of the original group, that exists independently
time_copy = driver.system.time.clone()
Subgroups