Model 2450 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2450-901-01 Rev. B/September 2013
8-21
Example
reset()
testData = buffer.make(50)
trigger.model.load("SimpleLoop", 3, 0, testData)
trigger.model.initiate()
waitcomplete()
print(testData.formattedreadings[1])
printbuffer(1, testData.n,
testData.formattedreadings)
Create a reading buffer named
testData
, configure the
instrument to make three
measurements, and store the
readings in the buffer.
Print the first reading formatted as
it appears on the front-panel
display.
Example output:
-00.0e-6 nA
Print all readings in the reading
buffer as they appear on the
front-panel display.
Example output:
-00.0e-6 nA, -000.0e-9
nA, -0.00e-6 nA
Also see
(on page 8-24)
(on page 8-9)
(on page 8-11)
(on page 8-17)
(on page 8-77)
(on page 8-78)
(on page 3-10)
(on page 3-27)
bufferVar.fractionalseconds
This attribute contains the fractional portion of the timestamp (in seconds) when each reading occurred.
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 portion of the timestamp (in seconds) when each reading occurred
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 between 1 and 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.