
Series 3700 System Switch/Multimeter Reference Manual
Section 9
:
Instrument Control Library (ICL)
Document Number: 3700S-901-01 Rev. A / August 2007
9-69
display.waitkey
Example
The following code pauses script execution and wait for the operator to press a key or
the wheel, or rotate the wheel:
key = display.waitkey()
print(key)
8.01
The above output (8.01, or 86) indicates that the
RUN
key
was pressed.
dmm functions
Use the functions and attributes in this group to control DMM operation, set limits, and perform
calibration. Default configuration names like "dcvolts", "temperature", "fourwireohms", etc., imply
the reset conditions for the corresponding functions. For example, sending
dmm.setconfig("slot1", "dcvolts") sets all channels on Slot 1 to use DC volts factory-default
settings. To make a channel use one setting that is different, create a user dmm configuration
with dmm.configure.set("mydcv") and then set "mydcv" to the desired channels.
dmm.adjustment.count
Attribute
Indicates the number of times the unit has been adjusted.
Usage
cal_count = dmm.adjustment.count
cal_count
: Represents the number of times unit has been calibrated
Remarks
Use this attribute to query the unit for the number of times the unit has been calibrated.
This command may be used with calibration locked or unlocked.
Example
To query for the calibration count:
CalCount = dmm.adjustment.count
dmm.adjustment.date
Attribute
Sets or queries the adjustment date in UTC format (number of seconds since January
1, 1970).
Usage
CalDate = dmm.adjustment.date
CalDate
: Represents the number of seconds since January 1, 1970.
To set the adjustment date based on the present date of the system:
dmm.adjustment.date = os.time()
To set the adjustment date as July 4, 2007
dmm.adjustment.date = os.time((year=2007 month=7,
day = 4))
Remarks
Use this attribute to set and get the adjustment date of the DMM in UTC format. See
Lua documentation for formatting options with os.date.