Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 68912

arrays in for loops

$
0
0

Hi, 

I am trying to put values into an array using for loop. My requirement is to insert the value into the output array only if i mod 2 is equal to zero. Otherwise, I do not want to pass anything to the array. The problem arises because I cannot leave the output tunnel unwired in the 'False' condition of the case structure. So I tried wiring a constant value of 0. Now my result array has zeros also. How can I modify this VI so that I get an array like 0 2 4 6 etc?

 

Thanks in advance


Viewing all articles
Browse latest Browse all 68912

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>