LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LED Cluster Manipulation

Greetings all. I have attached an example vi of what I am trying to accomplish. The actual vi has a cluster of 96 LED's. I want each LED to display either Green (Pass), Red (Fail), or Yellow (Reverse). This is used to test a battery assembly. I originally tried to manipulate the entire cluster as a whole, but the results were non-repeatable. This way works every time. I don't care about a "false" state, as I will apply a "true" even for a failure (Red). The array of results will be parsed from a table that I will get a sub-array from. It will consists of 96 entries reflecting either PASS,FAIL, or REV.

 

My question is this:

 

Do I need to have 96 case statements (as shown in my example of 10), or is there a way to automatically select the Vi Server Reference and link to the proper Boolean using the index of the for loop? You can change any of the parameters in the array to see the vi in action. It is exactly what I want, but am hoping that I don't have to do the vi server reference and link 96 times.

0 Kudos
Message 1 of 11
(4,877 Views)

This could inspire you. http://forums.ni.com/ni/attachments/ni/170/376003/1/Happy%20VI%20holidays.vi.

It is not my work



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 2 of 11
(4,872 Views)

That is basically what I tried to do previously and I kept getting mixed results. I realized after I posted my original question and example vi that I had not set the array inputs to defaults. Here it is again, correctly entered so you can see what I am trying to accomplish.

0 Kudos
Message 3 of 11
(4,861 Views)
 


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 4 of 11
(4,841 Views)

You can use the controls property to get refs to all object in the cluster.

 

 

See here for more info on this topic.

 

Solved?

 

Ben

Message Edited by Ben on 04-30-2009 09:21 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 11
(4,840 Views)
My method allows differnt type of boolean controls. Perhaps not so interesting in this case i guess.  


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 6 of 11
(4,832 Views)

Sorry if I pre-empted you Coq rouge!

 

The machine I use to answer Q's does not have LV 8.5 so I could not tell.

 

BTW: Welcome the forums! I appreciate your efforst in helping us out!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 11
(4,824 Views)

Thanks to all! It is working just as I had hoped. I see the mistake I made when I tried to do it this way originally. One more detail if I may.... I was considering adding a "blink" property to the "REV" state because it is such a dangerous condition in the battery module. I applied the property, but instead of the LED itself blinking, the text in the center blinks. This will work and is quite visible, but I was wondering why the LED is not blinking?

 

Once again, thanks to everyone for the help. I always learn so much from this forum.

 

Frank

0 Kudos
Message 8 of 11
(4,796 Views)

Double check your blink color. If yellow blinks to yellow it will be hard to see.

 

Tools >>> Options >>> Color

 

Ben

Message Edited by Ben on 04-30-2009 12:27 PM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 9 of 11
(4,790 Views)

In the words of that great American Hero, Homer Simpson....

 

DOH!

 

lol......   Thanks 

 

amazing how the super simple things will drive you crazy sometimes.

 

Frank

0 Kudos
Message 10 of 11
(4,780 Views)