
Section 8: TSP command reference
Model 2461 Interactive SourceMeter® Instrument Reference Manual
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
]
fractionalSec
The fractional second portion of the timestamp to 1 ns resolution
bufferVar
The name of the reading buffer, which may be a default buffer (
defbuffer1
or
defbuffer2
) or a user-defined buffer
N
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
buffer
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
reset()
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
(on page 8-29)
(on page 8-11)
(on page 8-14)
(on page 8-19)
(on page 8-92)
(on page 8-93)
(on page 3-2)
(on page 3-23)