ection 7: Introduction to TSP operation Model 2450 Interactive SourceMeter® Instrument
7-12 2450-901-01 Rev. B/September 2013
Function and variable name restrictions
You cannot use Lua reserved words and top level command names for function or variable names.
You cannot use the following Lua reserved words for function or variable names. If you attempt to
assign these, the error message -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 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.