11-05-2008 09:03 AM
ajangot wrote:I save it in labview 8.0.
If the temp is 20.5°C, you don't have case for this. it will be better if you use comparative block, every value is in a case.
Best Regards
Hello,
20.5. OK, I see. In a real application using double or single datatype I would miss it.
In my little example I use I32 datatype, so I think I don't miss a value .
BTW: no attachment for LabVIEW 8.0 .
Uli
11-05-2008 09:06 AM
Sorry for my forget 😄
Aurélien J.
National Instruments France
11-05-2008 09:15 AM
The property node method will work, but I'd still suggest going with the picture ring as Felix suggested. The property node will work (it's more coding) for a single instance of your control. But as soon as you put it into an array, and expect to get a different color on each element, it will break.
Chris
11-05-2008 09:44 AM
Chèr Aurélien,
Very nice VI. How did you create the "color constants"? It is a very "visual" way of seeing what will happen when the VI is used.
Bob Schor
11-05-2008 10:06 AM
You can find color constants in "Graphics & Sound" -> "picture functions" -> "color box constant"
Color constant is a integer with constant RGB : Blue + Green*256 + Red*65535, with this indication you can create a color variable indicator 🙂
Aurélien J.
National Instruments France
11-05-2008 11:19 AM
This has been discussed many times before. If you want multiple colors, you want a colorbox indicator.
It can be made to look exactly like an LED (square or round).
Here are some older discussions and examples:
(General Instructions. In your case, you would use the shape of a square LED for the colorbox control)
11-05-2008 11:26 AM
Using a "colorbox LED" also has the advantage that you can use an array of such LEDs with each element a differnet color, something that is not possible with an array of booleans. In your first example, you would have a single array terminal instead of x individual LEDs, simplifying the code dramatically.
11-05-2008 12:52 PM
11-05-2008 12:53 PM
11-05-2008 02:23 PM - edited 11-05-2008 02:30 PM
OK, here's a quick example that uses a square multicolor LED (based on Colorbox). Simple, right?