Section 9
:
Instrument Control Library (ICL)
Series 3700 System Switch/Multimeter Reference Manual
9-152
Document Number: 3700S-901-01 Rev. A / August 2007
localnode.settime
Function
Set the current time of the system.
Usage
settime(hour, minute, second)
or
localnode.settime(os.time(year = <year>, month = <month>, day =
<day>, hour = <hour>, min = <min>, sec = <sec>))
<year>
: A full year that is 2006 or later
<month>
: The desired month from 01 to 12
<day>
: The desired day from 01 to 31
<hour>
: The desired hour from 00 to 23
<minute>
: The desired minute from 00 to 59
<second>
: The desired second from 00 to 59
Remarks
This function sets the date and time of the system based on the os.time response
passed in as its parameter. Use year, month, day, hour, min, and sec to set the time
as desired. The first 3 parameters to os.time are mandatory while the rest are
optional. If the later 3 are not used, they default to noon for that day. The setting of
the time and date does not take into account the time zone. Please update the time for
your time zone.
Example
To set the date and time to Oct 3, 2006 at 2:25 pm:
settime(os.time(year = 2006, month = 10, day = 3,
hour =14, min = 25, sec = 0))
localnode.setup.poweron
Attribute
The saved setup to recall when the unit is turned on.
Usage
To read power on state:
n = localnode.setup.poweron
n
: Returned power on state.
To write power on state:
localnode.setup.poweron = n
n: Setup number to recall on power up (0 or 1).
Remarks
Setting this attribute to 0 causes the unit to power up to the factory default (reset)
setup. A setting of 1 causes the unit to power up using a user setup that was
previously saved.