8: TSP command reference Model 2461 Interactive SourceMeter® Instrument
8-24 2461-901-01 A/November 2015
bufferVar.fractionalseconds
This attribute contains the fractional second portion of the timestamp of each reading in the reading buffer.
Type TSP-Link accessible Affected by Where saved Default value
Attribute (R) Yes
Restore configuration
Instrument reset
Power cycle
Not applicable Not applicable
Usage
fractionalSec = bufferVar.fractionalseconds[N]
The fractional second portion of the timestamp to 1 ns resolution
The name of the reading buffer, which may be a default buffer (defbuffer1 or
) or a user-defined buffer
The reading number N; can be any value from 1 to the number of readings in the
buffer; use the bufferVar.n command to determine the number of readings in the
Details
This read-only attribute is an array (a Lua table) of the fractional portion of the timestamps, in
seconds, when each reading occurred. Seconds are shown as fractions.
Example
testData = buffer.make(50)
trigger.model.load("SimpleLoop", 6, 0,
testData)
trigger.model.initiate()
waitcomplete()
print(testData.fractionalseconds[1])
printbuffer(1, 6, testData.fractionalseconds)
Create a reading buffer named testData
and make six measurements.
Print the fractional portion of the timestamp
for the first reading in the buffer.
Example output:
0.647118937
Print the fractional portion of the timestamp
for the first six readings in the buffer.
Example output:
0.647118937, 0.064543,
0.48196127, 0.89938724,
0.316800064, 0.734218263
Also see
bufferVar.seconds (on page 8-29)
buffer.delete() (on page 8-11)
buffer.make() (on page 8-14)
bufferVar.clear() (on page 8-19)
print() (on page 8-92)
printbuffer() (on page 8-93)
Reading buffers (on page 3-2)
Remote buffer operation (on page 3-23)