11-24-2009 08:08 AM
I'm looking for a way to programatically change my brightly colored gauge screens used in the daytime to a subdued red look for nighttime. I have thought about custom gauges with the red look that are alternately hidden or viewed along with the daytime versions but I have over a dozen screens to do this with. Is there a way for LabView to programatically turn down the Blue and Green color drive and leave the Red and luminance alone using a boolean screen control?
Thanks in advance for any suggestions,
Mel
11-24-2009 08:21 AM - edited 11-24-2009 08:22 AM
11-24-2009 08:52 AM
Avoiding the clutter should be easy. Get 'All Controls' from the vi, for-loop (check for the type, type-cast and use the color settings for this type). Makes a simple SubVi...
Felix
11-24-2009 09:04 AM
If all of the object have a transparent background and they over-lay a picture control, you can change the backgrounds by changing the picture.
Ben
11-24-2009 09:13 AM
Hi
This is something along the lines of what Felix suggested. See if it helps. I know the code isn't very well documented (I quickly adapted from something else) so post back if you have any questions. Run the testgauge.vi. You can also place additional gauges, they change too.
Best Regards
David
NISW
PS. The VIs have to be in the same folder to work at the moment.
11-24-2009 11:13 AM
Hi David,
Thanks for the vi's. However, I'm still in the dark ages using LabView 7.0. Is it possible to get versions of the vi's saved in 7.0 format or the block diagrams?
Thanks again,
Mel
11-24-2009 02:05 PM
If your controls were added as New>strict type def type controls, you would be able to change one parameter on the type definition and that would change all the controls at once.
Not sure how to do that...just getting into type defs and stuff, but someone will sure comment on how to or whether to do this.
Hummer1
11-25-2009 03:03 AM
Hummer1, type def's are edit time, not run-time.
Felix
11-25-2009 03:07 AM
Hi Mel
Sorry for the delay. Got a new computer just a few weeks ago and just installed LV2009. I'm downloading an image so I can save further back than 8.0, just gonna take some time. If anyone else can save the VIs in 7.0 in the meantime please feel free to help out
Best Regards
David
11-25-2009 11:14 AM
Sorry, still new to all that. I guess if you use a type defined control in multiple, and don't make it strict, you could change the properties fo the control at each instance...
Interesting.
Hummer1...back in the closet.