10-20-2013 05:20 AM
Hello
I have array which have some index
0- Verify SN
1- SIM ID
2- EMPTY
3- IMEI ID
4- EMPTY
5- RF0 LOOPBACK
I want to delete the EMPTY indext which is 2 and 4 ,
I bulid some vi but I get some of the value
0- Verify SN
1- SIM ID
2- IMEI
But the last index RF0 LOOPBACK I didn't get
what I am doing wrong
thanks
ohh please I am using labview 2009
Solved! Go to Solution.
10-20-2013 07:19 AM
your vi does not removes empty fields also. Check this ( little dirty )
10-20-2013 03:02 PM - edited 10-20-2013 03:02 PM
It is not clear from your description if you want to remove Array elements that are "empty strings" or the ones that contain the word "EMPTY".
Here are two solutions (LabVIEW 9.0), one for each scenario. Modify as needed.
10-20-2013 11:52 PM
wow....
Christian , I gave almost the same solution but now after your solution i can see that the almost was rube.
10-21-2013 12:12 AM
Thanks alot
10-21-2013 03:24 AM - edited 10-21-2013 04:01 AM
@Neos wrote:
wow....
Christian , I gave almost the same solution but now after your solution i can see that the almost was rube.
Well, you said it's "a little dirty" 😄
One potential improvement would be something like in my April 2005 post for a similar problem: If you index the element inside the loop, no extra copy of the input array needs to be made (see also this old example). A disadvantage is more code ("array size" and "index array"). For small arrays it does not really matter and the simpler code is probably preferred.