8: TSP command reference Model 2450 Interactive SourceMeter® Instrument
8-22 2450-901-01 Rev. B/September 2013
Example
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,
Also see
bufferVar.seconds (on page 8-26)
buffer.delete() (on page 8-9)
buffer.make() (on page 8-11)
bufferVar.clear() (on page 8-17)
print() (on page 8-77)
printbuffer() (on page 8-78)
Reading buffers (on page 3-10)
Remote buffer operation (on page 3-27)
bufferVar.logstate
This attribute indicates whether the reading buffer should log informational events.
Type TSP-Link accessible Affected by Where saved Default value
Attribute (RW) Yes
Instrument reset
Power cycle
Configuration script
defbuffer1: buffer.ON (1)
defbuffer2: buffer.ON (1)
User-created buffer: buffer.OFF (0)
Usage
logState = bufferVar.logstate
bufferVar.logstate = logState
Log information events: buffer.ON or 1
Do not log information events: buffer.OFF or 0
The name of the reading buffer, which may be a default buffer (defbuffer1 or
defbuffer2
) or a user-defined buffer