»Events happen within your HELIO elements, usually initiated by operators. For instance, a button can be
clicked
, or a dialog can beconfirmed
.«
»Actions define how HELIO will respond to an event. For instance, when a button is pressed, HELIO can write a data variable, display an alert, or navigate to a page. It offers numerous other actions for you to choose from!«
Both of the following Actions can respond to the On click
event of a Button (Element)
Navigate to any page on the Dashboard that you would like (for example, you could use the Playground HMI template), and add a button to one of the widgets on your Dashboard.
Navigate to the properties of the new button. By default, the On click
event of buttons is set to the Show Simple Alert
action. Change the action to Write Data Variable (Action) and select the variable you want to modify.
For instance, you can change the value of a variable in the Playground project!
Set the Value
you would like to write to your data variable, for example 21 for the pressure value.
<aside> <img src="/icons/light-bulb_gray.svg" alt="/icons/light-bulb_gray.svg" width="40px" /> To prove that you have actually changed the value, add a Magic Output (Element) to your page and link it to the modified variable.
</aside>
Add another button or reuse the existing button.
Change the button’s On click
action to Navigate to Page (Action).
Pick any page you want to navigate to.
For example the Tool Management
page in the Playground HMI
.
Press the button in Test Mode (Preview Panel) and it will take you to the selected page!