User manual

Series 3700 System Switch/Multimeter Reference Manual Section 7: Buffer: Data Storage and Retrieval
3700S-901-01 Rev. C / July 2008 7-9
dmm.makebuffer()
Function
Creates a user buffer for storing readings.
Usage
mybuffer = dmm.makebuffer(buffersize)
buffersize: Maximum number of readings that can be stored.
Remarks
These reading buffers are allocated dynamically. This function creates the buffers
where buffersize indicates the maximum number of readings the buffer can store.
These buffers can be deleted by setting mybuffer to nil.
Details
Once a buffer is created, the attributes are:
mybuffer.appendmode = 1 (ON) or 0 (OFF) default 0 over a bus interface,
but 1 for ones created on the front panel
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.n for number of readings stored in buffer currently
mybuffer.timestampresolution returns the resolution of the time
stamping (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