LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW

Solved!
Go to solution

Hi

 

I want to create a VI .I am trying to control 3 LEDs. 

 

 If A,B,C  are three leds

 

in my vi there should be a question like " how many steps?"

If I  give input as 2

 

two steps should be created

 

if i give input 4

four steps should be created

Screenshot (72).pngScreenshot (73).png

 

how can i create shuch type of VI

 

 

 

 

 

0 Kudos
Message 1 of 5
(1,372 Views)

Programatically creating controls is rather difficult in LabVIEW. Although you CAN do it, I don't recommend.

 

Instead, would it be fine for you to have a 2D array of bool to control each light beside a 1d numeric to control step time?

 

After you get that set up, you can use a producer consumer loop  to process the inputs from your user.

Message 2 of 5
(1,364 Views)

Create a 1D array of clusters, where each cluster contains three booleans and a numeric control. Use a property node to set the number of array elements to show.

0 Kudos
Message 3 of 5
(1,321 Views)
Solution
Accepted by topic author veNKY7

See if this can give you some ideas....

 

altenbach_0-1604695261602.png

 

 

Message 4 of 5
(1,313 Views)

Thank you so much.

 

0 Kudos
Message 5 of 5
(1,302 Views)