![background image](http://html2.mh-extra.com/html/keithley/interactive-sourcemeter-2450/interactive-sourcemeter-2450_reference-manual_4033478651.webp)
Section 8: TSP command reference
Model 2450 Interactive SourceMeter® Instrument Reference Manual
8-120
2450-901-01 Rev. B/September 2013
smu.measure.readwithtime()
This function returns the last actual measurement and time information in UTC format without using the trigger
model.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
reading, seconds, fractional
= smu.measure.readwithtime()
smu.measure.readwithtime(
bufferName
)
reading
The last reading of the measurement process
seconds
Seconds in UTC format
fractional
Fractional seconds
bufferName
The name of a reading buffer; the default buffers (
defbuffer1
or
defbuffer2
) or
the name of a user-defined buffer; if no buffer is specified, this parameter defaults to
defbuffer1
Details
When a reading buffer is used with a command or action that involves taking multiple readings, all readings are
available in the reading buffer. However, this command only returns the last reading and time information.
The
smu.measure.count
attribute or trigger model Simple Loop determines how many measurements are
performed. When you use a buffer, it also determines if the reading buffer has enough room to store the
requested readings.
Example
print(smu.measure.readwithtime())
Print the last measurement and time information in UTC
format, which will look similar to:
-1.405293589829e-11 1400904629 0.1950935
Also see
(on page 8-97)
trigger.model.load() — Simple Loop
(on page 8-191)