LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

nightime screens

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

0 Kudos
Message 1 of 16
(5,118 Views)
There isn't (to my knowledge) a built in Property node that does what you want. But most indicators/controls have control over their various colors. You could create a day/night case statement that had the property nodes for the various controls and appropriate color box constants for the desired colors. Of course if the displayed front panel has a lot of controls/indicators that need to change this case could get pretty cluttered.
Message Edited by LV_Pro on 11-24-2009 09:22 AM
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 2 of 16
(5,109 Views)

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 

Message 3 of 16
(5,086 Views)

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 16
(5,076 Views)

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.

Message 5 of 16
(5,066 Views)

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

0 Kudos
Message 6 of 16
(5,035 Views)

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

0 Kudos
Message 7 of 16
(5,008 Views)

Hummer1, type def's are edit time, not run-time.

 

Felix 

Message 8 of 16
(4,965 Views)

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 Smiley Happy

 

Best Regards

 

David

0 Kudos
Message 9 of 16
(4,961 Views)

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.

0 Kudos
Message 10 of 16
(4,921 Views)