EasyManuals Logo
Home>Keithley>Multimeter>DMM7510

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 #586 background imageLoading...
Page #586 background image
Model DMM7510
7½ Digit Graphical Sampling Multimeter Reference Manual Section 7:
Introduction to TSP commands
DMM7510-901-01 Rev. B / May 2015 7-15
Example: Hex constant
You can enter hexadecimal values, but to return a hexadecimal value, you must create a function, as
shown in this example. Note that hexadecimal values are handled as a number type.
hex = function (i) return "0x"..string.format("%X", i) end
print(hex(0x54|0x55))
print(hex(0x54&0x66))
Set the format to return hexadecimal values, then OR two hexadecimal values and AND two
hexadecimal values.
Output:
0x55
0x44
Example: Binary constant
Binary values are returned as floating point decimal values. Note that binary values are handled as a
number type.
x = 0b0000000011111111
y = 0B1111111100000000
print(x, type(x))
print(y, type(y))
255 number
65280 number
Example: String and number
x = "123"
print(x, type(x))
x = x + 7
print(x, type(x))
123 string
Adding a number to x forces its type to
number.
1.30 number
Example: Function
function add_two(first_value,
second_value)
return first_value + second_value
end
print(add_two(3, 4), type(add_two))
7 function
Example: Table
atable = {1, 2, 3, 4}
print(atable, type(atable))
print(atable[1])
print(atable[4])
Defines a table with four numeric
elements.
Note that the "table" value (shown here
as a096cd30) will vary.
table: a096cd30 table
1
4
Delete a global variable
To delete a global variable, assign nil to the global variable. This removes the global variable from
the run-time environment.

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
BrandKeithley
ModelDMM7510
CategoryMultimeter
LanguageEnglish

Related product manuals