
2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
2470-901-01 Rev. A /
May
2019
14-121
smu.measure.count
This attribute sets the number of measurements to make when a measurement is requested.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
Restore configuration
Instrument reset
Power cycle
Configuration script
1
Usage
count
= smu.measure.count
smu.measure.count =
count
count
Number of measurements (1 to 300,000)
Details
This command sets the number of measurements that are made when a measurement is requested.
This command does not affect the trigger model.
This command sets the count for all measure functions.
If you set the count to a value that is larger than the capacity of the reading buffer and the buffer fill
mode is set to continuous, the buffer wraps until the number of readings specified have occurred. The
earliest readings in the count are overwritten. If the buffer is set to fill once, readings stop when the
buffer is filled, even if the count is not complete.
To get better performance from the instrument, use the Simple Loop trigger model template instead
of using the count command.
Example 1
reset()
--Set up measure function
smu.measure.func = smu.FUNC_DC_CURRENT
smu.terminals = smu.TERMINALS_REAR
smu.measure.autorange = smu.ON
smu.measure.nplc = 1
smu.measure.count = 200
--Set up source function
smu.source.func = smu.FUNC_DC_VOLTAGE
smu.source.ilimit.level = 0.1
smu.source.level = 20
smu.source.delay = 0.1
smu.source.highc = smu.OFF
--Turn on output and initiate readings
smu.source.output = smu.ON
smu.measure.read(defbuffer1)
--Parse index and data into three columns
print("Rdg #", "Time (s)", "Current (A)")
for i = 1, defbuffer1.n do
print(i, defbuffer1.relativetimestamps[i], defbuffer1[i])
end