7½ Digit Graphical Sampling Multimeter Reference Manual Section 7: Intr
DMM7510-901-01 Rev. B / May 2015 7-13
Function and variable name restrictions
You cannot use Lua reserved words and top-level command names for function or variable names.
Variable names must contain at least three characters.
The following table lists some of the Lua reserved words. If you attempt to assign these, the event
code -285, "TSP Syntax error at line x: unexpected symbol near 'word' " is displayed, where word is
the Lua reserved word.
Lua reserved words
Values and variable types
In Lua, you can use variables to store values in the run-time environment for later use.
Lua is a dynamically-typed language; the type of the variable is determined by the value that is
assigned to the variable.
Variables in Lua are assumed to be global unless they are explicitly declared to be local. A global
variable is accessible by all commands. Global variables do not exist until they have been assigned a
value.