LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
LV_user1

Array function which can be used to remove blank elemets from the array...

Status: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.

One simple idea that can be helpful to all,

 

many times we have an array from which we need to find out the blank elements which can be present in between. For that we need to check each element and then verify whether it is blank or not(for numeric it is comparison for zero and non zero).

 

One function can be made available in the array pallete which can give the output array which is not having any blank element.

Input will be the array from which blank elements needs to be removed.

3 Comments
tst
Knight of NI Knight of NI
Knight of NI

"Blank" is meaningless in LV. Zero is a perfectly valid value, so you would need to generalize this by adding another input to the function which tells it which value you want to remove.

 

Also, this will only be relevant for 1D arrays, because in higher dimensions you can't delete a single element.

 

I agree that this type of functionality is sometimes useful, but there is already code for this - OpenG has a VI called Filter 1D Array which does this.


___________________
Try to take over the world!
LV_user1
Active Participant

 

Zero is valid for numeric array...if the array is of string then in that case if the array elements is having empty string(which i have called as blank) that needs to be identified.

 

Also for 2D array this function cannot be used directly ,but i think use of this function can be extended for 2D array also by indexing them

 

In open G this vi is there but unfortunately everyone cannot use open G VIs in their projects(Like me).

 

 

Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.