07-17-2007 08:35 PM
I have 14 boolean indicators (LED's) in my main program that correspond to 14 relay channels in my DAQ system (when the relay is open a True is written to the indicator). As the user changes settings within the program, various relays are commanded open or closed. I would like to be able to write a 14 element array of states (T/F) to a subvi and have that subvi update the LED's in the main program. Right now I have the array of states running throughout the program but I have to use an index array and 14 local variables every time a relay is commanded open or closed - as you can image the code is quite messy. I'm pretty sure there is a way to do this with references or global variables but I'm still very new to LabVIEW and don't have any idea how to accomplish this. Any help on how to do this would be greatly appreciated. Thanks!
-Erik
07-17-2007 09:32 PM
07-17-2007 10:50 PM
07-18-2007 08:32 AM