EasyManuals Logo

Keithley DMM7510 Reference Manual

Keithley DMM7510
1036 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 #591 background imageLoading...
Page #591 background image
Section
7: Introduction to TSP commands Model DMM7510 7½ Digit Graphical Sampling Multimeter
Reference Manual
7-20 DMM7510-901-01 Rev. B / May 2015
Create functions using scripts
You can use scripts to define functions. Scripts that define a function are like any other script: They
do not cause any action to be performed on the instrument until they are executed. The global
variable of the function does not exist until the script that created the function is executed.
A script can consist of one or more functions. Once a script has been run, the computer can call
functions that are in the script directly.
For detail on creating functions, see Fundamentals of scripting for TSP (on page 7-4
).
Conditional branching
Lua uses the if, else, elseif, then, and end keywords to do conditional branching.
Note that in Lua, nil and false are false and everything else is true. Zero (0) is true in Lua.
The syntax of a conditional block is as follows:
if expression then
block
elseif expression then
block
else
block
end
Where:
expression is Lua code that evaluates to either true or false
block consists of one or more Lua statements
Example: If
if 0 then
print("Zero is true!")
else
print("Zero is false.")
end
Output:
Zero is true!
Example: Comparison
x = 1
y = 2
if x and y then
print("Both x and y are true")
end
Output:
Both x and y are true

Table of Contents

Other manuals for Keithley DMM7510

Questions and Answers:

Question and Answer IconNeed help?

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

Keithley DMM7510 Specifications

General IconGeneral
Resolution7.5 digits
DC Voltage Range100 mV to 1000 V
AC Voltage Range100 mV to 750 V
DC Current Range10 µA to 10 A
Resistance Range10 Ω to 1 GΩ
Sampling Rate1 MS/s
Memory27.5 million readings
Display5 inch capacitive touchscreen
AC Voltage Accuracy±0.06% of reading
AC Current Range10 A
ConnectivityUSB, LAN, GPIB

Related product manuals