LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

boolean array insert value problem

hi,
what i have is a boolean array that i want to insert a true or false constant into.  for example if my boolean array that has 5 values and i want to insert a false value in index 9 it won't let me because it is 'greyed ' out after position 5. a vi is attached to better explain.

thanks
0 Kudos
Message 1 of 4
(3,184 Views)
Hi lfoitek,
insert into is not possible in this case, use the reshape array function (connect 9 to it) and replace the 9. element with the value you want insert into your array.

Hope it helps.
Mike
Message 2 of 4
(3,176 Views)
No, you can't insert an new element into an array when there is nothing to insert into. You could do a Replace Array Element if the array was initialized to the size you need or you can use the Build Array but in any case, you have to define all of the elements between the old array and the index of the new element.
Message 3 of 4
(3,175 Views)
thank you. the reshape array does the trick.
0 Kudos
Message 4 of 4
(3,168 Views)