Parametrization

Created by Ybone Hernandez, Modified on Thu, 19 Nov 2020 at 10:24 AM by Ybone Hernandez

Using parameters accross different displays gives a lot of power to the visualization applications. 


This is a simple example that gives you an idea about how parametrization works in atvise: Let's do a general display with three buttons: if you press the first one, a pop up display will appear with a trend chart of the variable ProcessValue01, if you press the second button, the pop up will display the chart for the variable ProcessValue02, and the same behaviour with the ProcessVariable03.


Step1: Create the variables


In this example, we are using an Object Type called ProcessValue with a node called ProcessValue: 



Then create three instances:





Step 2: Create a pop up display with a chart


We don't want this display to be accessible from the navigation menu, so we will create this display under the Display Pool section:


Drag and drop the Chart Container component to the display:



Add a parameter with the next options into the popup display: 

name: base

substitution: $BASE$

behaviour: optional

Value-Type: address




Add the text $BASE$ above the chart, so the parameter value text will be shown there:


 


In the Chart Container properties, the Series 1 address option needs to be linked to the ProcessValue node into the Object Type:




Now all the components in the popup display are properly linked.


Step 3: Configure the navigation


Create a display just with a button inside the Object Type:




Fit the display resolution to the button's:




Create the same parameter as the display popup in this display:

name: base

substitution: $BASE$

behaviour: optional

Value-Type: address



Configure a simple dynamic on the button to navigate to the popup display once the button is pressed, like this:



Step 4: Create the main display with the three buttons


Drag and drop the Displays from the ProcessValues instances into the Main display and set some text to identify them:



Step 5: Test it


Open the web browser and test the application. Change the values of one Process Value manually in the builder to test the chart behaviour:




Congratulations! You have learnd how work with parameters in atvise scada.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article