grandMA3 User Manual Publication
Lua Keyword

grandMA3 User Manual » Command Syntax and Keywords » General Keywords » Lua
Version 2.0

To enter the Lua keyword in the command line, type Lua.

Description

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 .

Syntax

Lua ["LuaCode"]

Examples

  • 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