LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

accessing front panel LEDs in several subVIs

Hi, I'm new to LabVIEW! Ok, what I'm trying to do is create a front panel with 9 LEDs. Then I have a Menu Ring, with three different options. These options determine the order in which the LEDs are lit. So what I was planning on doing was creating three subVIs, one for each of the options...but how can I do that when I only have one boolean for each LED? So basically how can I relate the LEDs on the front panel into the subVIs? I tried using globals - but it seemed like that just passed on the state of the boolean instead of allowing me to actually change the boolean in the subVI. I hope this makes sense...I'm really confused! Thanks for any help!
0 Kudos
Message 1 of 3
(2,611 Views)
LV_newbie wrote:
> Hi, I'm new to LabVIEW! Ok, what I'm trying to do is create a front
> panel with 9 LEDs. Then I have a Menu Ring, with three different
> options. These options determine the order in which the LEDs are lit.
> So what I was planning on doing was creating three subVIs, one for
> each of the options...but how can I do that when I only have one
> boolean for each LED? So basically how can I relate the LEDs on the
> front panel into the subVIs? I tried using globals - but it seemed
> like that just passed on the state of the boolean instead of allowing
> me to actually change the boolean in the subVI. I hope this makes
> sense...I'm really confused! Thanks for any help!

It's a bit fidly to do but it is possible to pass a reference for an LED
(or ot
her control/indicator) into a SubVI. Then the SubVI can write the
the Value property of the LED using a Property Node on that reference.
0 Kudos
Message 2 of 3
(2,611 Views)
> Hi, I'm new to LabVIEW! Ok, what I'm trying to do is create a front
> panel with 9 LEDs. Then I have a Menu Ring, with three different
> options. These options determine the order in which the LEDs are lit.
> So what I was planning on doing was creating three subVIs, one for
> each of the options...but how can I do that when I only have one
> boolean for each LED? So basically how can I relate the LEDs on the
> front panel into the subVIs? I tried using globals - but it seemed
> like that just passed on the state of the boolean instead of allowing
> me to actually change the boolean in the subVI. I hope this makes
> sense...I'm really confused! Thanks for any help!

Initially, you might just hook your ring to a case structure to
determine which frame exe
cutes. You can put the terminals for the
Booleans in the different diagrams and about the only other thing to
keep in mind is that you probably want a delay in the loop.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,611 Views)