LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

empty line

Hello,
 
I have a 2d array (string) that has alot of empty lines, how can i delete the empty lines?
i have tried doing as you can see in the attached  vi but its takeing alot of time and if i will try to use the "empty array?" comp he will not see the empty strings as empty array.
can it be done better?
 
 
0 Kudos
Message 1 of 16
(4,289 Views)
Can you sort them first?  Sort then find first empty element then you can delete the rest.
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 16
(4,288 Views)
Regular sort can work only with 1D arrays
0 Kudos
Message 3 of 16
(4,286 Views)

I use a 2D sort I fond on NI's site.  Here is a few:

http://zone.ni.com/devzone/cda/epd/p/id/4077

http://zone.ni.com/devzone/cda/epd/p/id/2502

 

 

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 4 of 16
(4,282 Views)
1st of all thanks for the sort i know i will need it but it doesnt help me its still slow 3000 lines will take it alot of time
0 Kudos
Message 5 of 16
(4,277 Views)
Post what you want sorted.  Should be fast.
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 6 of 16
(4,275 Views)
ok, this it it....its more then 3000 Smiley Happy
0 Kudos
Message 7 of 16
(4,273 Views)
You need to set the data as defult (Edit -> Make current Value Default) before saving the VI.  You posted an empty array.
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 8 of 16
(4,270 Views)
The data you posted is empty.  You forgot to save the value as default.
0 Kudos
Message 9 of 16
(4,269 Views)
0 Kudos
Message 10 of 16
(4,265 Views)