
19-92
Return to
2600AS-901-01 Rev. B / September 2008
Section 19: Remote Commands
Series 2600A System SourceMeter® Instruments Reference Manual
localnode.settimezone
Function
Sets the local time zone.
TSP-Link
accessibility
This function can be accessed from a remote TSP-Link node.
Usage
localnode.settimezone(offset)
localnode.settimezone(offset, dst_offset, dst_start, dst_end)
offset
String representing offset from UTC.
dst_offset
String representing daylight savings offset from UTC.
dst_start
String representing when daylight savings time starts.
dst_end
String representing when daylight savings time ends.
Remarks
• The time zone is only used when converting between local time and UTC time when using the
os.time
and
os.date
functions.
• If only one parameter is given, the same time offset is used throughout the year. If four
parameters are given, time is adjusted twice during the year for daylight savings time.
•
offset
and
dst_offset
are strings of the form
"[+|-]hh[:mm[:ss]]"
that indicate how
much time must be added to the local time to get UTC time.
hh
is a number between 0 and 23
that represents hours,
mm
is a number between 0 and 59 that represents minutes, and
ss
is a
number between 0 and 59 that represents seconds. The minutes and seconds fields are
optional.
• The UTC-5 time zone would be specified with the string
"5"
because UTC-5 is 5 hours behind
UTC and one must add 5 hours to the local time to get UTC time. The time zone UTC4 would be
specified as
"-4
" because UTC4 is 4 hours ahead of UTC and 4 hours must be subtracted from
the local time to get UTC.
•
dst_start
and
dst_end
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 within 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, and
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.
localnode.showerrors
Attribute
Automatic display of errors.
Default
0
TSP-Link
accessibility
This attribute can be accessed from a remote TSP-Link node.
Usage
errormode = localnode.showerrors -- Reads show-errors state.
localnode.showerrors = errormode -- Writes show-errors state.
errormode
Set to 0 or 1.
Remarks
• If this attribute is set to 1, the unit will automatically display any generated errors stored in the
error queue, and then clear the queue. Errors will be processed at the end of executing a
command message (just prior to issuing a prompt, if prompts are enabled).
• If this attribute is set to 0, errors will be left in the error queue and must be explicitly read or
cleared.
• When used in an expanded system (TSP-Link),
localnode.showerrors
is sent to the remote
master node only. Use
node[n].showerrors
(where
n
is the node number) to send the
command to any node in the system. See
for details about TSP-Link.
Details
See
.