Avio Scripts

Avio Scripts allow programming of mathematical or logic functions, as well as complex functions and clearly extend the range of functions available in the Avio System. For frequently required basic functions, such as comparison, logic AND/OR, addition, multiplication, etc. prepared scripts are part of the supply. The programming language Lua allows creation of your own scripts and implementation of virtually any function. A Lua development tool is supplied along with a Wings Engine. For separate applications you can also acquire a dongle-based license for Avio Service.

Avio Scripts are supported by the following Avio nodes:

Information on how to add the scripts to the Avio nodes can be found in the topic below.

 

A more detailed introduction to Avio Scripts and the programming language Lua can be found in a PDF file which can be printed. See AvioScript.pdf.

Using Avio Scripts

Before you can use scripts you need to select and install them and make them available in the Avio Manager.

  1. Open the Avio Manager. Right-click the node for which you would like to install one or more scripts and select Open with Web Brower. Following this, the web interface is displayed. Note: Scripts can be installed for Wings Vioso RX, Wings IOboxes and Avio Service, where information and incoming connections are also stored. In principle, the scripts can be used across the system with all Avio channels.

  2. Click Scripts on the left and the script page opens. In order to select a script click Add a script on the right next to Installed Scripts and a selection list appears. At Add existing scripts you will find all the scripts that have been supplied. Further below in the list at Add custom scripts you will find user-defined scripts that you may already have imported.

  3. When you click a script in the list a short description of its functions and the available parameters appears. At Name you can enter the name which is to appear in Avio Manager.

  4. When configuration is finished, click Save and it will appear in the list of Installed Scripts and, in Avio Manager, with the corresponding node in folder Avio Script.

  5. With folder Avio Script and the script open you can use its functions by linking up inputs and outputs with other Avio channels. See also Wings Avio Manager - An overview.

New scripts can also be added in Avio Manager by right-clicking the port of the corresponding node in the Editor and clicking Add Script ...

 

Supplied scripts

As mentioned above, some scripts for frequently used standard functions are supplied. The following scripts are available:

This causes the channels time, date and dmxValue 1 to be created. Although the channels are text channels the Avio texts can also be interpreted as figures, e.g. when the channel is dragged and dropped onto a status bar.

See also

Using variables for control purposes

Formula Parser