
Section 8: TSP command reference
Model 2461 Interactive SourceMeter® Instrument Reference Manual
8-38
2461-901-01 A/November 2015
Example
reset()
testData = buffer.make(50)
trigger.model.load("SimpleLoop", 3, 0, testData)
trigger.model.initiate()
waitcomplete()
print(testData.times[1])
printbuffer(1, 3, testData.times)
This example creates a reading buffer
named
testData
and makes three
measurements.
The
print()
command outputs the time
of the first reading.
Output:
23:09:43
The
printbuffer()
command outputs
the time of readings 1 to 3 in the reading
buffer.
Output:
23:09:43, 23:09:43, 23:09:43
Also see
(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)
bufferVar.timestamps
This attribute contains the timestamp when each reading saved in the specified reading buffer 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
readingTimestamp
=
bufferVar
.timestamps[
N
]
readingTimestamp
The complete timestamp (including date, time, and fractional seconds) of
reading number
N
in the specified reading buffer when the reading was
acquired
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