Skip to content

Lua

To enter the Lua keyword in the command line, use one of the options:

  • Type Lua
  • Type the shortcut Lu

The Lua keyword is used to execute commands in the script language Lua. 

After entering Lua into the command line, type in the script language Lua version 5.4. The grandMA3 will directly execute the commands written in Lua.

To learn more about the grandMA3 specific Lua functions, see Plugins .

Lua [“LuaCode”]

  • To output “Hello World” in the Command Line History, type:
User name[Fixture]>Lua “Printf(‘Hello World’)”

Result: 

 Hello World

 

  • To output “Hello World” in the system monitor, type:
User name[Fixture]>Lua “Echo(‘Hello World’)”

Result: 

 Hello World