Problem Description:
This FAQ describes how to create an object. And its visibility is determined by a certain tag value.
When the tag value exceeds a certain value, the object will be invisible.
Otherwise, it can be visible
Brief Solution - Step by Step:
-
Go to the 2D sketchboard, click + New Sketchboard.
-
Create a new rectangle and a text.
-
Bind the tag value to a tag in your SCADA node.
-
Select the rectangle, click the paperclip icon in “visible” property
-
Select the same tag in step 3.
-
Go to “Animation”, Choose “Advanced”. And enter below script.
function(input) { if(input > 5) { return true; } else { return false; } }
And press OK.
- Save the sketchboard, you can verify that when tag value exceeds 5, the rectangle will show up;
otherwise it will be invisible