07-25-2014 01:29 PM
I have an array elements with values and blank spaces. I want to arrange the elements such that the array only contains values eliminating blank spaces and rearrange the array with cotimuous values. I am using a bollean array to fill in the elements, so the bolleans with false value fill in blank spaces which I dont want. How can I program the above operation?
Thank you,
Solved! Go to Solution.
07-25-2014 01:35 PM
Use a FOR loop. You will need a shift register to hold the values. If the current value is empty, then fill in with the value in the shift register. Whichever value you indexed out, put in the shift register.
07-25-2014 01:42 PM
07-25-2014 01:58 PM
The OpenG Filter 1D array will do this for you. Give it the item(s) to filter and it will return an array with those elements removed.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-25-2014 02:06 PM
Thank you for your solution, but I just figured out an easier way. CONDITIONAL INDEXING!. How can I miss that. Anyways, Thank you...