
Section 7: TSP command reference
2606B System SourceMeter® Instrument Reference Manual
7-172
2606B-901-01 Rev. B / May 2018
For example, to set the UTC-5 time zone, you specify the string
"5"
, because UTC-5 is 5 hours
behind UTC and you must add 5 hours to the local time to determine UTC time. To specify the time
zone UTC4, you specify
"-4"
, because UTC4 is 4 hours ahead of UTC and 4 hours must be
subtracted from the local time to determine UTC.
dstStart
and
dstEnd
are strings of the form
"MM.w.dw/hh[:mm[:ss]]"
that indicate when
daylight savings time begins and ends respectively:
•
MM
is a number between 1 and 12 that represents the month
•
w
is a number between 1 and 5 that represents the week in the month
•
dw
is a number between 0 and 6 that represents the day of the week (where 0 is Sunday)
The rest of the fields represent the time of day that the change takes effect:
•
hh
represents hours
•
mm
represents minutes
•
ss
represents seconds
The minutes and seconds fields are optional.
The week of the month and day of the week fields are not specific dates.
Example
settimezone("8", "1", "3.3.0/02", "11.2.0/02")
settimezone(offset)
Sets
offset
to equal +8 hours,
+1 hour for DST, starts on Mar 14 at
2:00 a.m., ends on Nov 7 at 2:00 a.m.
Sets local time zone to
offset
.
Also see
(on page 7-98)
(on page 7-151)
(on page 7-170)
setup.poweron
This attribute specifies which saved setup to recall when the instrument is turned on.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
Not applicable
Nonvolatile memory
0
Usage
id
= setup.poweron
setup.poweron =
id
id
An integer that specifies the setup to recall when the instrument power is
turned on (0 to 5)
Details
When
id
=
0
, the instrument uses the factory default setup when it is turned on. When
id
is set to 1
to 5, it uses the setup saved with
setup.save()
.
Only setups stored in nonvolatile memory are available (you cannot recall a script from a USB flash
drive with this command).