03-12-2012 12:43 PM
Hi all,
I know this is a simple question but I got stuck at one point, the input for my Vi is an array of clusters. I am choosing each element of the array on based two criterias. I would like my VI to choose the elements and write only the elements who are in the range to the output and skip the others(out of range ones). But the problem is that for the current version of the program, the program is writing elements of zero for the out of range ones.
Best,
Serkut.
Solved! Go to Solution.
03-12-2012 12:57 PM
The Build Array needs to be inside the case structure - you do not want to add to the array if the element is out of range. Thus, the case structure either adds an element, or it passes the array as is.
Also, since you are autoindexing you do not wire to the N terminal of the for-loop, since LabVIEW already knows how many times it needs to run from the autoindexing.
03-12-2012 12:58 PM
Pretty close
try this