Show/Hide hidden text
This chapter gives an overview of the events that are raised by a Terra device and that can be used in the Event Listener.
Please read the chapters "Terra" and "Event Listener" if you would like to know how to add and use a Terra device and Event Listener. There is also a "Terra Tutorial" available which explains how to use Event Listeners. The available Terra members that can be used in our scripting language are explained in the chapter "Terra Device Members".
Example:
Label1.Text = ipAddress
This event is raised whenever the IP address of the connected Terra system is changed from anywhere.
The event returns one parameter to WD which is a string with the name "ipAddress" and holds the current IP address.
If you select this event and copy the example into the scripting field of the Event Listener, it will write the IP address into the Label with ID 1 whenever the IP address is changed.
|
Example:
DropDownList1.SetItemsFromArray("layoutNames")
This event is raised whenever a layout is changed (i.e. edited, created or deleted) in the connected Terra system.
The event returns one parameter to WD which is a list with the name "layoutNames" and holds all layout names.
If you select this event and copy the example into the scripting field of the Event Listener, it will populate the Drop Down List with ID 1 with all current layout names whenever a layout is edited, created or deleted.
You can also directly access the layout names via the member Christie_TerraID.LayoutNames within the regular scripting. The Event Listener just keeps your system automatically updated as long as WD is turned on. The member Christie_TerraID.DisplayArrayLayoutName returns the currently applied layout per display array.
|
Example:
DropDownList1.SetItemsFromArray("deviceNames")
This event is raised whenever a device (i.e. transmitter or receiver) is changed (i.e. edited, created or deleted) in the connected Terra system.
The event returns one parameter to WD which is a list with the name "deviceNames" and holds all device names.
If you select this event and copy the example into the scripting field of the Event Listener, it will populate the Drop Down List with ID 1 with all current device names whenever a device is edited, created or deleted.
You can also directly access the device names via the member Christie_TerraID.DeviceNames within the regular scripting. The Event Listener just keeps your system automatically updated as long as WD is turned on.
|
Example:
DropDownList1.SetItemsFromArray("receiverNames")
This event is raised whenever a receiver is changed (i.e. edited, created or deleted) in the connected Terra system.
The event returns one parameter to WD which is a list with the name "receiverNames" and holds all receiver names.
If you select this event and copy the example into the scripting field of the Event Listener, it will populate the Drop Down List with ID 1 with all current receiver names whenever a receiver is edited, created or deleted.
You can also directly access the receiver names via the member Christie_TerraID.ReceiverNames within the regular scripting. The Event Listener just keeps your system automatically updated as long as WD is turned on.
|
Example:
DropDownList1.SetItemsFromArray("transmitterNames")
This event is raised whenever a transmitter is changed (i.e. edited, created or deleted) in the connected Terra system.
The event returns one parameter to WD which is a list with the name "transmitterNames" and holds all transmitter names.
If you select this event and copy the example into the scripting field of the Event Listener, it will populate the Drop Down List with ID 1 with all current transmitter names whenever a transmitter is edited, created or deleted.
You can also directly access the transmitter names via the member Christie_TerraID.TransmitterNames within the regular scripting. The Event Listener just keeps your system automatically updated as long as WD is turned on.
|
Example:
DropDownList1.SetItemsFromArray("displayArrayNames")
This event is raised whenever a display array is changed (i.e. edited, created or deleted) in the connected Terra system.
The event returns one parameter to WD which is a list with the name "displayArrayNames" and holds all names of the display arrays.
If you select this event and copy the example into the scripting field of the Event Listener, it will populate the Drop Down List with ID 1 with all current display array names whenever a display array is edited, created or deleted.
You can also directly access the display array names via the member Christie_TerraID.DisplayArrayNames within the regular scripting. The Event Listener just keeps your system automatically updated as long as WD is turned on.
|
Example:
Label1.Text = isConnected
This event is raised whenever the connection state changes from disconnected to connected or vice versa.
The event returns one parameter to WD which is a Boolean value with the name "isConnected" and holds either "true" or "false".
If you select this event and copy the example into the scripting field of the Event Listener, it will write "true" or "false" into the Label with ID 1 whenever the device dis-/connects.
|
Example:
Label1.Text = "YourMessage"
This event is raised whenever the connected Terra system receives a "shut down" command from anywhere.
If you select this event and copy the example into the scripting field of the Event Listener, it will write "YourMessage" into the Label with ID 1 whenever Terra is shut down.
|
Example:
Label1.Text = "YourMessage"
This event is raised whenever the connected Terra system receives a "restart" command from anywhere.
If you select this event and copy the example into the scripting field of the Event Listener, it will write "YourMessage" into the Label with ID 1 whenever Terra is restarted.
|
Example:
Label1.Text = "YourMessage"
This event is raised whenever the connected Terra system is updating its firmware.
If you select this event and copy the example into the scripting field of the Event Listener, it will write "YourMessage" into the Label with ID 1 whenever Terra is updating.
|
Example:
Label1.Text = "Current layout: " + layout
This event is raised whenever a layout is applied in the connected Terra system.
The event returns two parameters to WD. The first is a string with the name "layout" and holds the new layout name. The second is a string with the name "displayArray" and holds the name of the display array the layout was applied to.
If you select this event and copy the example into the scripting field of the Event Listener, it will write into the Label with ID 1 "Current layout: " and the layout name behind it, so for example "Current layout: PIP".
|