Model 2461 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2461-901-01 A/November 2015
8-29
bufferVar.seconds
This attribute contains the timestamp of a reading in seconds, in UTC format.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Restore configuration
Instrument reset
Power cycle
Not applicable
Not applicable
Usage
nonFracSeconds
=
bufferVar
.seconds[
N
]
nonFracSeconds
The nonfractional seconds portion of the timestamp when the reading was stored
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 attribute contains the nonfractional seconds portion of the timestamp when the reading was
stored in Coordinated Universal Time (UTC) format.
The nonfractional seconds portion of the timestamp gives the lowest resolution down to 1 second. To
access additional resolution of a timestamp, see
bufferVar
.fractionalseconds
.
Example
reset()
testData = buffer.make(50)
trigger.model.load("SimpleLoop", 6, 0,
testData)
trigger.model.initiate()
waitcomplete()
printbuffer(1, 6, testData.seconds)
Create a reading buffer named
testData
,
configure the instrument to make six
measurements, and store the readings in
the buffer.
Print the seconds portion for readings 1 to 6
in
testData
.
Example output:
1362261492, 1362261492,
1362261493, 1362261493,
1362261493, 1362261494
Also see
(on page 8-24)
(on page 8-28)