EasyManuals Logo

Keithley 2450 User Manual

Keithley 2450
878 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #177 background imageLoading...
Page #177 background image
Section
3: Functions and features Model 2450 Interactive SourceMeter® Instrument
Reference Manual
3-32 2450-901-01 Rev. B/September 2013
Reading buffer for . . . do loops
The following TSP examples illustrate the use of for . . . do loops when recalling data from a reading
buffer called mybuffer. The following code may be sent as one command line or as part of a script.
Sample outputs follow the line of code. Also see the printbuffer() (on page 8-78
) command.
This example loop uses the printbuffer() command to show the reading, units, and relative
timestamps for all readings stored in the reading buffer. The information for each reading (reading,
units, and relative timestamps) is shown on a single line with the elements comma-delimited.
for x = 1, mybuffer.n do
printbuffer(x,x,mybuffer, mybuffer.units, mybuffer.relativetimestamps)
end
Example comma-delimited output of above code:
-1.5794739960384e-09, Amp DC, 0
-1.5190692453926e-11, Amp DC, 0.411046134
-2.9570144943758e-11, Amp DC, 0.819675745
-2.9361919146043e-11, Amp DC, 1.228263492
-3.0666566508408e-11, Amp DC, 1.636753752
-4.0868204653766e-11, Amp DC, 2.034403917
The following loop uses the print command instead of the printbuffer command. This loop
shows the same information described in the previous example (reading, units, and relative
timestamps for all readings stored in the buffer). However, because the print() command is used
instead of printbuffer(), each line is tab-delimited (rather than comma-delimited) to produce a
columnar output, as shown below:
for x = 1, mybuffer.n do
print(mybuffer.readings[x], mybuffer.units[x], mybuffer.relativetimestamps[x])
end
Example columnar-delimited output of above code:
-1.5794739960384e-09 Amp DC 0
-1.5190692453926e-11 Amp DC 0.411046134
-2.9570144943758e-11 Amp DC 0.819675745
-2.9361919146043e-11 Amp DC 1.228263492
-3.0666566508408e-11 Amp DC 1.636753752
-4.0868204653766e-11 Amp DC 2.034403917
Exceeding reading buffer capacity
When the reading buffer fill mode is set to fill once and the reading buffer count is not exceeded,
readings are stored as expected. But if new readings would exceed reading buffer capacity when they
are added to the active buffer index, the count is lowered to a new count so it does not exceed the
reading buffer capacity. Once the reading buffer is full (to the new count), no more readings are taken
and error message 4915 is displayed, stating that you attempted to exceed the capacity of the
reading buffer. If you attempt to store additional readings in a full reading buffer, the same message
appears, and no readings are taken.

Table of Contents

Other manuals for Keithley 2450

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keithley 2450 and is the answer not in the manual?

Keithley 2450 Specifications

General IconGeneral
Model2450
CategorySourceMeter
Voltage Source Range±200 V
Current Source Range±1 A
DC Voltage200 V
DC Current1 A
Power Output20 W
Resolution6.5 digits
Display5-inch capacitive touchscreen
Operating Temperature0°C to 50°C
ConnectivityUSB, LAN, GPIB
Dimensions213 mm × 88 mm × 370 mm

Related product manuals