annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

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
Messaggio 1 di 16
4.514Visualizzazioni
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
Messaggio 2 di 16
4.513Visualizzazioni
Regular sort can work only with 1D arrays
0 Kudos
Messaggio 3 di 16
4.511Visualizzazioni

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
Messaggio 4 di 16
4.507Visualizzazioni
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
Messaggio 5 di 16
4.502Visualizzazioni
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
Messaggio 6 di 16
4.500Visualizzazioni
ok, this it it....its more then 3000 Smiley Felice
0 Kudos
Messaggio 7 di 16
4.498Visualizzazioni
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
Messaggio 8 di 16
4.495Visualizzazioni
The data you posted is empty.  You forgot to save the value as default.
0 Kudos
Messaggio 9 di 16
4.494Visualizzazioni
0 Kudos
Messaggio 10 di 16
4.490Visualizzazioni