Hello, I'm new PI proccess book user. Please help in the following issue, I have, for example, 3 tags, and if one of them exceeds a range of values that the button should change color and blink. How does it perform?
OK, I understand what buttons you are using now, from the Symbol Library. I originally assumed you were referring to actual clickable buttons.
For the button on the Main page, you will need to configure it separately as a multistate symbol - you can't control it from the multistates on the Second page. Further, because a Multistate symbol can only be configured to reference a single data source, you may need to use some creativity to achieve the effect you are after. Based on what I understand you are trying to achieve, I would create a PI Calculation dataset with a simple expression to handle the two limits:
If 'Temperature tag' > 27 Or 'Humidity tag' > 70 Then 1 Else 0
You would reference the Value column of this dataset in your Multistate symbol, with state definitions as follows:
Usually this is done with a Multistate symbol. There's a good YouTube video available on this topic here. You mentioned specifically though making buttons change colour and blink in this kind of instance. This type of behaviour is achievable through VBA code (see some examples you could adapt here and here), but this is more advanced, and requires you to implement all of the range checking logic. What is your particular requirement for having blinking buttons though? Would just using standard Multistate symbols meet your requirement? I would recommend using the standard functionality in the first instance before going down the path of this custom code option.
In the multi-state symbol I put the tag "temperature" if it exceeds 27, the color of the button will be red and the tag "humidity" if it exceeds 70% of this button will be red. And it works. If one of these tags exceeds the set value, on main page buton should be red.
In multi state symbol I can't add more than one tag, I need to assign two tags to multi state symbol ...
OK, this is good idea! Very Thanks.
It work, it's that simple, but I wrote I am a new user without any training, thank you very much !!!!
No questions is too simple Tomasz!! John has a LOT of PI experience.
If you do want some PI Training, we have free training available online. Check out the Learn PI page. There is a great course on ProcessBook there. If you have any questions, you can always ask Kelsey Holstein. She manages the learning space.
Retrieving data ...