03-16-2014 06:41 AM
hellow,
i have some problem,
i have 1D array of string, i need separated string with zero value and do new array which contained only no-zero values,
is it possible
thanks
Solved! Go to Solution.
03-16-2014 09:54 AM - edited 03-16-2014 09:55 AM
Everything is possible, but your description is incomplete.. A string is not numeric, so do you want to remove the elements taht have the character zero or do you want to remove elements that have empty strings, or both?
What have you tried so far? There ae plenty of examples posted in the forum to do this. Is this homework?
03-16-2014 01:36 PM
thanks altenbach,
I need remove elements with empty string and do new array without empty string (in attachment a describe this...)
03-16-2014 01:49 PM - edited 03-16-2014 02:16 PM
Try this, credits for DFGray: http://forums.ni.com/t5/LabVIEW/Dr-Damien-s-Development-Memory-Allocation-in-Loops/td-p/1075712
You probably could put Trim Whitespaces for empty strings with 1 or more whitespaces before.
03-16-2014 02:05 PM - edited 03-16-2014 02:06 PM
If you have a recent LabVIEW version, all you need is a conditional output tunnel as follows:
03-16-2014 02:13 PM
Please i have version of labview 10., could you convert it thanks
03-16-2014 02:17 PM
I have already uploaded the VI with your version of LV.
03-16-2014 02:20 PM
unfortunately, but when i try open it, it talk me (it is verion 12 ???)
03-16-2014 02:22 PM - edited 03-16-2014 02:30 PM
@AYanez wrote:
Try this, credits for DFGray: http://forums.ni.com/t5/LabVIEW/Dr-Damien-s-Development-Memory-Allocation-in-Loops/td-p/1075712
You probably could put Trim Whitespaces for empty strings with 1 or more whitespaces before.
What is the purpose of the outer case structure?
Here's a much simpler version of the same (LV 2010).
03-16-2014 02:27 PM
If you feel like my version is still a little complicated, please vote for my idea here. 😄