LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make re-usable bank of LED indicators?

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

0 Kudos
Message 1 of 6
(3,154 Views)
Make it a 2D array of LEDs.
0 Kudos
Message 2 of 6
(3,153 Views)

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.

0 Kudos
Message 3 of 6
(3,136 Views)
Are you trying to make a type def. Control because to do that you would just need to customize your control and in the drop down menu select type def. and you can reuse your control....
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 4 of 6
(3,129 Views)

here is an example of a bool.ctl

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 5 of 6
(3,127 Views)

 


How can I make a bank or the entire 48 LEDs a sub-vi?

 

 


What exactly you are trying to acheive? 

 

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

 

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
0 Kudos
Message 6 of 6
(3,082 Views)