04-30-2009 08:11 AM
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.
04-30-2009 08:22 AM
This could inspire you. http://forums.ni.com/ni/attachments/ni/170/376003/1/Happy%20VI%20holidays.vi.
It is not my work

04-30-2009 08:41 AM
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.
04-30-2009 09:19 AM

04-30-2009 09:21 AM - edited 04-30-2009 09:21 AM
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
04-30-2009 09:33 AM

04-30-2009 09:52 AM
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
04-30-2009 12:03 PM
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
04-30-2009 12:25 PM - edited 04-30-2009 12:27 PM
Double check your blink color. If yellow blinks to yellow it will be hard to see.
Tools >>> Options >>> Color
Ben
04-30-2009 12:51 PM
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