DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Global Variables and colors

Is there a way to assign a global variable to the background color of a temp display?  We would would like the background of the temp display to change as the actual temp approaches, is equal to and then rises above the setpoint temp. 

 

Example:  Display is green if act temp is +/- 2 degrees of setpoint,  yellow if act temp is < two degrees lower than the setpoint, and red if the act temp is > two degrees higher than the setpoint.

 

Any thoughts?

 

Thanks,

 

Bill...

0 Kudos
Message 1 of 4
(6,754 Views)

Bill,

a check what you needs:

The settings (screen shot with number 1) Trend display, Lower limit + colors for this are not enough for you.
24548i1C784CB60F34FE1F

 

You would like also dynamic set the background color for area with blue arrow and red arrow

24550i41322281FF6BFCEE

 

And for the Layout the background color for area with green line

24552i27A1208EC0F72901

 

The red, blue, green color settings should be based on 3 new Actions for the module based on Global Variables which can take over the RGB values for the 3 backgrounds.

24554i5444BEA4B7096B6F

 

Is this what you needs?

Best regards,

MHa - DASYLab Software Development

0 Kudos
Message 2 of 4
(6,750 Views)

Or would you like that the
- Color change for Upper and Lower
- Backgound colors
- Text colors
- Display elements
can be set via Global variables?

Best regards,
MHa - DASYLab Software Development

0 Kudos
Message 3 of 4
(6,749 Views)

I have an idea that might work.

 

Use a Status Lamp configured to display bitmaps to be the background for the digital meter (the Link Text object worked best).

 

The status lamp has a relatively ignored feature that allows you to display a series of bitmaps, based on the input value. Unfortunately, the values cannot be global variables, which you need because the Setpoint may change.

 

So, to get around that, I set up a formula to test the temperature against the setpoint global variable, and then output a number (0, 5, 10) that reflected the state (below, in range, above). That's now a consistent value, and can be input into the Status Lamp.

 

See the attached. I've also attached my colored bitmaps. They need to be in the ..\Other\ folder. I zipped them with the correct folder location for Vista/Windows 7.

 

I found that the default settings for the layout caused the bitmap to cover the Link Text Digital Meter when it changed colors. I had to fiddle with settings and set up an Action module to ensure that the Digital Meter stayed on top. You'll need to look at the individual object settings for the Link Graph Status Lamp and the Link Text Digital Meter, as well as at the Action (which just does an update for both when the input value changes.

 

 

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
Download All
0 Kudos
Message 4 of 4
(6,745 Views)