11-06-2020 11:32 AM - edited 11-06-2020 11:37 AM
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
how can i create shuch type of VI
Solved! Go to Solution.
11-06-2020 12:05 PM
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.
11-06-2020 02:22 PM
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.
11-06-2020 02:41 PM
11-06-2020 03:08 PM
Thank you so much.