User manual
Series 3700 System Switch/Multimeter Reference Manual Section 13: Instrument Control Library (ICL)
3700S-901-01 Rev. C / July 2008 13-31
channel.calibration.adjustcount()
Example
To query for the adjustment count:
CalCount = channel.calibration.adjustcount("1010")
channel.calibration.adjustdate()
Function
Sets or gets the adjustment date in UTC format (number of seconds since January 1,
1970) on the unlocked channel.
Usage
mydate = channel.calibration.adjustdate([ch_list],
[<date>])
mydate: Return value representing the number of seconds since January 1, 1970.
ch_list: A string representing the slot holding the card to query.
date: Represents the number of seconds since January 1, 1970.
Remarks
This command can get the adjust date whether calibration is currently locked or
unlocked. If the channel list is not specified, it uses the currently unlocked card.
This command can only set the adjust date on a previously unlocked card. The date is
not permanently saved until channel.calibration.save() (on page 13-32) is
issued.
There is only one adjustment date per card. Therefore, with no channel unlocked, the
only acceptable values for channel list are slot1, slot2, and so on. Otherwise, an
error is generated.
Also see
channel.calibration.save() (on page 13-32)
Example
To get the number of seconds since January 1, 1970:
date = channel.calibration.adjustdate()
To set the calibration adjustment date on the currently unlocked slot based on the
current date of the system:
channel.calibration.adjustdate(os.time())
To set the calibration adjustment date on Slot 1 to July 4, 2006:
channel.calibration.adjustdate(os.time(year=2006, month=7,
day = 4))
See Lua documentation for formatting options with os.date() and additional
information on os.time().
NOTE: The following example assumes the set date is July 4, 2006.
To query calibration adjustment date and format the response as mm/dd/yyyy:
TSP> print(os.date("%m/%d/%Y",
channel.calibration.adjustdate()))
07/04/2006
channel.calibration.lock()
Function
Locks calibration on the card being calibrated.
Usage
channel.calibration.lock()