04-24-2009 09:04 AM
Greetings all. I just can't wrap my head around this one. Just finishing building a system that tests 96 special batteries in an assembly. One of the tests checks for proper polarity. The indicator on the screen for the operator is a cluster of the 96 cells, represented by LED's. Everything is fine in that if a cell fails, it is red and says "FAIL" in the center of the LED. The same is true for if the cell passes, with green color and "PASS". Now my boss wants either a different color if the cell is reversed or at least different text in the LED, such as REV. I just can't figure out how to programmatically change the Boolean Text or the color in the specific LED. I create an array of locations of reversed cells, ie. [0,18], [1,45], [2,76] (index, location). I can't figure out how to apply that info to the cluster of cell indicators.
If someone could help I would surely appreciate it. If an example program is provided, it could be fewer cells in a cluster obviously. I am using Labview Version 8.5, so please nothing newer than that.
04-24-2009 09:13 AM
There is more than way to get there.
THis thread has a lot of images showing you how to handle control references. If your cluster is all booleans you work will be simler. You are going to want to change the "Caption" of the boleans because changing the name would be bad. (Hide name show caption to avoid errors while seting the captions).
You could also change the colors of the boolean using the "colors[]" property node.
But if you can handle a small change in your cluster you work can be simplified even more.
Change your booeans into a color box to allow more than two colors
or
Create a Pict Ring that looks like a boolean but has three different images.
Have fun!
Ben