Show/Hide hidden text
This chapter gives an overview of the events that are raised by a Phoenix device and that can be used in the Event Listener.
Please read the chapters "Phoenix" and "Event Listener" if you would like to know how to add and use both. There is also a "Terra Tutorial" available which explains how to use Event Listeners.
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:
DropDownList1.SetItemsFromArray("layoutNames")
This event is raised whenever a layout is changed (i.e. edited, created or deleted) in the connected Phoenix 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_PhoenixID.LayoutNames within the regular scripting. The Event Listener just keeps your system automatically updated as long as WD is turned on.
|
Example:
DropDownList1.SetItemsFromArray("sourceNames")
This event is raised whenever a source is changed in the connected Phoenix system.
The event returns one parameter to WD which is a list with the name "sourceNames" and holds all source 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 source names whenever a source is changed.
You can also directly access the device names via the member Christie_PhoenixID.SourceNames within the regular scripting. The Event Listener just keeps your system automatically updated as long as WD is turned on.
|
Example:
DropDownList1.SetItemsFromArray("wallNames")
This event is raised whenever a wall is changed (i.e. edited, created or deleted) in the connected Phoenix system.
The event returns one parameter to WD which is a list with the name "wallNames" and holds all wall 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 wall names whenever a wall is edited, created or deleted.
You can also directly access the receiver names via the member Christie_PhoenixID.WallNames within the regular scripting. The Event Listener just keeps your system automatically updated as long as WD is turned on.
|
Example:
Label1.Text = "The layout named `"+layoutName+"` (ID:"+layoutId+") was applied on the wall named `"+wallName +"` (ID:" +wallId+ ")."
This event is raised whenever a layout is recalled in the connected Phoenix system.
The event returns five parameters to WD that can be used as variables in the below scripting field.
If you select this event and copy the example into the scripting field of the Event Listener, it will write the following in the Label with ID 1, according to your IDs and names of course:
The layout named `mixed` (ID:1) was applied on the wall named `OUT` (ID:2).
|