Set text slot, Inject trigger, Run script – ETC Unison Mosaic Designer v1.11.0 User Manual

Page 111: Digital output, Serial output

Advertising
background image

Triggers - Advanced

Set Text Slot

The Set Text Slot trigger action allows you to change the value of a text slot from a trigger, see the

Dynamic Text

preset.

You select the slot either by picking from the Text Slot list or by specifying a variable. If you use a variable, the
variable must have captured a string in the trigger, and that string must be the name of an existing text slot.

The value to put in the text slot is then selected with the second variable.

Inject Trigger

Use this to fire a Trigger. You can specify which trigger you want to fire or which variable you want to use to get
the trigger number from. You can also choose whether you want test the conditions of that trigger or not.

Run Script

Use this to run a

Lua script

, press Launch Editor to open the script editing dialog. If you can not achieve what you

want with the triggers and actions provided it is almost certain that a script can be defined to solve your problem.

Unison Mosaic Controllers support a scripting language that can be used for handling complicated conditional trig-
gering or other advanced control requirements. The user can write scripts and set them to run in response to any
trigger event. From within a script you can do all the things that you can do with a trigger in the triggers screen –
access passed-in variables, test conditions and perform actions - but you can also define more complicated con-
ditional statements and perform mathematical operations.

Designer provides sample scripts which are located in Program Files at \ETC\Mo-
saic\Designer\resources\scripts\actions.

WARNING: Scripts are an advanced feature intended to solve problems that cannot be addressed in any other
way. They are not as user-friendly as the normal triggers interface and incorrectly written scripts will not work as
intended and could cause other problems with the operation of your Controller. For help with writing scripts,
please see the

Trigger Script Programming Guide

, or please

contact support

to discuss requirements for a par-

ticular project.

Digital Output 

The RIO 08 has eight relay outputs, the RIO 44 has four and the RIO 80 none.

Use the configuration pane to select the RIO, output and the state of the relay.

Serial Output

RS232 remains a very popular protocol for interfacing equipment and the RS232 port of a Controller or Remote
Device can be configured to support most common data formats. RS485 is a more robust alternative to RS232
(better noise immunity, longer cable lengths and faster data rates) and is a widely supported protocol. A Controller
or Remote Device can be configured to send RS232 full-duplex or RS485 half-duplex in the Network view, see

Controller interfaces

and

Remote Devices

. A TPC with TPC-RIO can send RS232 full-duplex.

To send serial from a Controller's serial port, use the Controller setting to specify the Controller number, leave the
Device as Local and choose a port number. For the revised MSC hardware and TPC with TPC-RIO this should

- 111 -

Advertising