Switch/Lamp Introduction
Switch/Lamp Feature Description
The Switch/Lamp object is a GUI object that allows user to control the state of a tag via a switch and display the state of a tag via a lamp. Users are able change the state of the tag by toggling the switch on and off. The lamp will reflect the state of the tag by changing color based on the state of the tag.
Switch/Lamp Designer Functionalities
The Switch/Lamp has no limit for the number of states within the object. The more states added to the project, the more memory usage the object will have. To create a Switch/Lamp object, click Insert > Switch/Lamp, or the Insert Switch/Lamp icon in the toolbar, and click and drag on the page to bring up the Switch/Lamp object.
Properties
Provides ways to customize the user’s Switch/Lamp.
When there is no tag or action bound to the Switch/Lamp, it will only function as a Lamp. To allow the Switch functionality, bind a tag to the Switch/Lamp object by either smart binding the tag to the Switch/Lamp, or by binding the tag to the State parameter within Basic Properties. Then create an action to toggle the tag when pressing the Switch/Lamp object.
To ensure the property windows are enabled, click View > Properties > Basic Properties, Appearance, Transform, or Actions and check the boxes.
Basic Properties
The Basic Properties window allows changing the displayed content and formatting within the object. Users can add new states to the Switch/Lamp within this window. The object’s name will show up in place of Basic Properties, as pictured below:
Appearance
The Appearance pane enables the use of selections to alter visible characteristics.
Transform
The Transform tab provides adjustable properties that reshape or move the Switch/Lamp object.
Actions
If the Switch/Lamp is pressed, released, or double-clicked, the action button runs a script or command. This is controlled under the On Press, On Release, or On Double click section of the Actions tab.