MA Lighting grandMA2 User Manual - page 1172
© 2017 MA Lighting Technology GmbH | Dachdeckerstr. 16 | D-97297 Waldbüttelbrunn | Germany
Phone +49 5251 688865-30 | tech.support (at) malighting.com | www.malighting.com
Version 3.3
1
AddVar $date_time = $TIME
Result of $date_time is a text string and is off coarse based on when you do this, but it could look like this:
12.8.2016_12h31m37.963s
notice that for better readability we added an underscore between the date and the
time.
Adding a number to text:
SetVar $num_text = 23
AddVar $num_text = " bananas"
The result is converted to text and it will be:
23 bananas
.
Adding a text to a number:
SetVar $text_num = "The answer is "
AddVar $text_num = 42
The result is a text that reads:
The answer is 42
.
For more practical examples please read the
37.2.2. Create pop-ups in macros
Sometimes it can be very useful to create macros that can collect user input while running.
A macro can create a pop-up that prompts the user for input. The macro will halt and wait for the user to type the
input before continuing.
Pop-ups are created by the use of parentheses.
The text inside the parentheses are used as text prompted to the user, while the response entered by the user will
replace the parentheses and the prompting text.
Important:
When you are using pop-ups to assign text to variables, you should use quotes inside the parentheses:
("What address?")
but when using pop-ups for commands and numbers, do not use quotes inside the
parentheses:
(Which Fixture ID?)
.
1172