09-05-2009 07:18 PM
Hi All,
My toplevel Labview GUI needs to have several banks of LED indicators, e.g. 6 rows of 8. How can I make a bank or the entire 48 LEDs a sub-vi? I tried making a sub-vi, but the LEDs on it do not appear on the main vi front panel when I add it. I.e. the output indicators on the LED sub-vi do not appear on the main vi when it's added.
Any ideas on how to achieve this? I wanted to make it a subvi so I could reduce the clutter on my top level main block diagram.
Thanks
09-05-2009 07:35 PM
09-05-2009 09:20 PM
What do you mean by making a "bank of LED's a subVI"?
You want some sort of control or indicator. That means it is a control on the front panel. Controls aren't subVI's. SubVI's are there own independent pieces of code that can also be called by other VI's. The subVI could contain code that can do some sort of specialy processing. It can also has controls and indicators itself. If you want the control/indicator in the subVI to do something to the mainVI, you will have to connect the controls to the connector panel and pass the data in and out of the subVI with wires. Or pass a control reference of the Main VI's control into the subVI and have the subVI's act on that using property nodes of the control reference.
09-05-2009 09:52 PM
09-05-2009 10:04 PM
here is an example of a bool.ctl
09-06-2009 09:46 PM
1. Are you trying to implement the functionality associated with led bank in a subvi or
2. The led bank(indicators/control) as a whole should be in a subvi front panel so that you are trying to update the LED bank from main vi.
post back for quries