LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

remove blank element in array

need help how to remove empty elements in an array?
0 Kudos
Message 1 of 17
(24,181 Views)

Hi jeyanthi,

how do you mean it? If you want to remove them manually, right click on the element, select data operation and remove element. Or do you mean with a part of code?

Mike

0 Kudos
Message 2 of 17
(24,178 Views)
 as a code? how can it b done?
0 Kudos
Message 3 of 17
(24,173 Views)

Hi Jeyanthi,

See this link to not only remove all empty elements from an array, but also 'any' repeated element from an array. Smiley Happy

Wire an Empty String Constant to the Element to Remove variable in that VI & it ll do the job for you. Smiley Wink

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 4 of 17
(24,172 Views)

thk u it just simple only...

need another help

i get the data frm text file and pass it to array

let say my array is like this

abc

cde

abc

cde

ok let say i wana remove the cde from the text file to..how can it been done?



Message Edited by jeyanthi on 06-09-2008 01:42 AM
0 Kudos
Message 5 of 17
(24,167 Views)

Hi jeyanthi,

i can´t find the original post, but here is another solution.

Mike



Message Edited by MikeS81 on 06-09-2008 09:03 AM
0 Kudos
Message 6 of 17
(24,163 Views)
how to remove tht data only frm text file
0 Kudos
Message 7 of 17
(24,159 Views)
Hi jeyanthi,
what do you mean? I thought you have an array of your data.
Mike
0 Kudos
Message 8 of 17
(24,158 Views)
how to remove tht data only frm text file
0 Kudos
Message 9 of 17
(24,156 Views)
Hi jeyanthi,
if you want to delete somthing from a txt file, you have also first to read the data, remove the part you want and to write the new data into the file. So i think you can do it with the array version. For example something like this:
 
 
Mike


Message Edited by MikeS81 on 06-09-2008 09:32 AM
0 Kudos
Message 10 of 17
(24,152 Views)