Section 9
:
Instrument Control Library (ICL)
Series 3700 System Switch/Multimeter Reference Manual
9-98
Document Number: 3700S-901-01 Rev. A / August 2007
dmm.linesync
Remarks
This attribute is only valid when dmm.func = ―dcvolts‖, ―dccurrent‖, ―twowireohms‖,
―fourwireohms‖, ―temperature‖, ―continuity‖, and ―commonsideohms.‖ All other
functions generate an error and return nil when queried.
Changing functions with
dmm.func
(on page 9-91) has no effect on this setting.
The factory default and dmm.reset function value is dmm.OFF.
Enabling this attribute will synchronize a trigger to the main power line crossings.
Example
To enable line sync on ―fourwireohms‖
dmm.func = "fourwireohms"
dmm.linesync = dmm.ON
dmm.makebuffer
Function
Creates a user buffer for storing reading.
Usage
mybuffer = dmm.makebuffer(buffersize)
buffersize
: Maximum number of readings that can be stored.
Remarks
These reading buffers can be allocated dynamically. These are created and allocated
with the dmm.makebuffer(buffersize) function, where buffersize is the number of
readings the buffer can store.
These buffers can be deleted by setting buffersize to nil.
Details
Once a buffer is created, the attributes are:
mybuffer.appendmode = 1(ON) or 0(OFF)
– default 0
mybuffer.basetimeseconds returns the seconds for reading buffer entry 1
(read-only attribute).
mybuffer.basetimefractional returns the seconds and fractional seconds for
reading buffer entry 1 (read-only attribute).
mybuffer.capacity for overall buffer size
mybuffer.collecttimestamps = 1(ON) or 0(OFF)
– default 1
mybuffer.collectchannels = 1(ON) or 0(OFF)
– default 1
mybuffer.collectunits = 1(ON) or 0(OFF)
– default 1
mybuffer.n for number of readings stored in buffer currently
mybuffer.timestampresolution returns the resolution of the timestamping (read-only
attribute).
The following buffer bits indicate buffer statuses:
dmm.buffer.LIMIT1_LOW_BIT or 1
dmm.buffer.LIMIT1_HIGH_BIT or 2
dmm.buffer.LIMIT2_LOW_BIT or 4
dmm.buffer.LIMIT2_HIGH_BIT or 8
dmm.buffer.MEAS_OVERFLOW_BIT or 64
dmm.buffer.MEAS_CONNECT_QUESTION_BIT or 128