8: TSP command reference Model 2450 Interactive SourceMeter® Instrument
8-36 2450-901-01 Rev. B/September 2013
Example 2
for x = 1, 3 do printbuffer(x, x, testData.timestamps) end
For the buffer created in Example 1, print the timestamps for the readings.
Output:
03/01/2013 14:46:07.714614838
03/01/2013 14:46:08.100468838
03/01/2013 14:46:08.487631838
Also see
buffer.delete() (on page 8-9)
buffer.make() (on page 8-11)
bufferVar.clear() (on page 8-17)
print() (on page 8-77)
printbuffer() (on page 8-78)
Reading buffers (on page 3-10)
Remote buffer operation (on page 3-27)
bufferVar.units
This attribute contains the unit of measure that is stored with readings in the reading buffer.
Type TSP-Link accessible Affected by Where saved Default value
Instrument reset
Usage
readingUnits = bufferVar.units[N]
Volt DC: Voltage measurement
Ohm: Resistance measurement
Watt DC: Power measurement
Amp DC: Current measurement
%: Math is set to percent for the measurements
mX+b: Math is set to mx+b for the measurements
Reciprocal: Math is set to reciprocal for the measurements
The name of the reading buffer, which may be a default buffer (defbuffer1 or
defbuffer2
) or a user-defined buffer
The reading number N; can be any value between 1 and the number of readings in
the buffer; use the bufferVar.n command to determine the number of readings
Details
This attribute contains the unit of measure that is stored with readings in the reading buffer.