LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

The below vi is not giving me what I want. If I select 2 with maximum number of 3 then there are 3 array elements display that is correct but if I select 8 with the same maximum number of 3 then only 1 array element display. Why is that?

The below vi is not giving me what I want. If I select 2 with maximum number of 3 then there are 3 array elements display that is correct but if I select 8 with the same maximum number of 3 then only 1 array element display. Why is that?
0 Kudos
Message 1 of 2
(2,374 Views)
It's because in case 2 you hold the array build result from the previous loop iteration in a shift register...in case 8 you do not...

You say that if you set the maximum number to three it will produce an array with three elements, that is not correct, it will run when the iteration index is 0,1,2 and 3...resulting in 4 elements. If you want 3 you need to decrement the maximum number to 2. The same goes for case 8.
Message 2 of 2
(2,374 Views)