19 how can i simulate a level control, How can i simulate a level control – CIRCUTOR PowerStudio Series User Manual

Page 37

Advertising
background image

PowerStudio

User Manual 37

3.2.19 How can I simulate a level control?


There are two ways to do a level control on a SCADA screen. The first one is to use a

conditional control, where each control is an image with a different level and where every condition
indicates what should be fulfilled to reach this level. Here are some images showing us specific
examples with their conditions:

[CVM K 1.VI1] == 215

[CVM K 1.VI1] == 221

[CVM K 1.VI1] == 224


Another option would be to draw the level control at the bottom of the SCADA screen and use

various paint pot controls to paint the desired zone. Thus, we could draw on the screen background
something like the following:


The inner part, although it seems all the same color (white), it is not and is divided into grids

with different whites indistinguishable one from the other and by the human eye (for example, it is
impossible to distinguish between white RGB 255.255.255 and white RGB 254.255.255).

Then we place the paint pot on each table with the desired condition and tolerance 0 to prevent

painting adjacent tables, which are very similar in color.


With this, the result is a progress bar (or control level) which can be configured as desired.

3.2.20 How can I change the properties of control in accordance with a

condition?


The properties of control cannot be changed in accordance with a condition. However, we can

simulate the change of these properties, using a conditional control. Thus, for example, if we wish to
change the color of a text in accordance with a condition we add a conditional control with two text type
controls which are exactly the same but of a different color, and specify which conditions need to be
fulfilled for each one to be shown. Likewise, we can also change the orientation, font, size, etc.

We can also make a control be an image or a text in accordance with a condition using, as in

the previous case, the conditional control.

Advertising