Buffervar.timestamps - Keithley 2450 Reference Manual

Interactive sourcemeter instrument
Table of Contents

Advertisement

Model 2450 Interactive SourceMeter® Instrument Reference Manual
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)
Also see
buffer.delete()
buffer.make()
bufferVar.clear()
print()
(on page 8-77)
printbuffer()
Reading buffers
Remote buffer operation

bufferVar.timestamps

This attribute contains the timestamps of readings stored in the reading buffer.
Type
TSP-Link accessible
Attribute (R)
Yes
Usage
readingTimestamps = bufferVar.timestamps[N]
readingTimestamps
bufferVar
N
Details
This attribute contains the timestamps (date, hours, minutes, and seconds) of readings stored in the reading
buffer.
Example 1
reset()
testData = buffer.make(50)
trigger.model.load("SimpleLoop", 3, 0, testData)
trigger.model.initiate()
waitcomplete()
print(testData.timestamps[1])
2450-901-01 Rev. B/September 2013
(on page 8-9)
(on page 8-11)
(on page 8-17)
(on page 8-78)
(on page 3-10)
(on page 3-27)
Affected by
Restore configuration
Instrument reset
Power cycle
The timestamps of the readings in the specified buffer
The name of the reading buffer, which may be a default buffer (defbuffer1
or defbuffer2) or a user-defined buffer
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
Section 8: TSP command reference
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
Where saved
Default value
Not applicable
Not applicable
Create a reading buffer named testData,
configure the instrument to make three
measurements, and store the readings in the
buffer.
Print the first reading date.
Output:
03/01/2013 14:46:07.714614838
8-35

Advertisement

Table of Contents
loading

Table of Contents