LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Selectively applying array elements

Solved!
Go to solution

In the below program, I would like to be able to select array elements that are passed at the output of the Build Array VI. For example, for one execution of the program I would use all 4 elements (0, 1, 2, 3), but for the next execution of the program, a control at the front panel would allow me to only use only two of the elements (0, 1), without deleting any of the code that isn't being used for that execution. 

 

Thank you for any help achieving this.

 

tareyes_0-1694536937976.png

 

0 Kudos
Message 1 of 3
(456 Views)

You can use Array Subset to get the portion of the array you care about.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(437 Views)
Solution
Accepted by topic author tareyes

Hi tareyes,

 

this code basically the same as yours:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(410 Views)