02-13-2009 06:13 AM
I am sure this is a trivial issue, but I cannot seem to find the method for doing it.
I want to change the background color of an indicator depending on it's value.
For example: if I have a setpoint of say 123degF, I would like the background color to be green if the value is within say 1%, or +/- 2degF.
Otherwise the color could be red if over and blue if under.
I have been able to program an indicator light that acomplishes it, but with over 50 indicators the interface gets rather busy.
Solved! Go to Solution.
02-13-2009 07:02 AM
Create a subvi that will do the color changing of indicator depends on condition. But make sure you have taken provision to to pass the control reference to that vi.
Make that vi as reentrant so you can use one vi to change the color of 50 indicators, you have to just call the subvi and pass the reference of control that you need to change the color.
Hope this helps
Regards
Santosh
02-13-2009 08:17 AM - edited 02-13-2009 08:24 AM
Santosh is correct. Here is a quick example of how to implement that code:
I also attached a copy of this VI, with the terminals already connected, so you may use it as a sub-vi if you wish.
It takes inputs of temperature, lower limit and upper limit. It then outputs the temperature value, with the color of the indicator modified.
02-16-2009 07:45 AM