LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delete row (index is comming from an array) from source array

Solved!
Go to solution

Dear Friends,

I am comparing two arrays and would like to delete rows from the source array.

maybe following VI can explain better what I have in my mind.


I like to delete row :3 6 from missing elements array

I can't put in the same case structure and loop while it makes 3D array.

 

Regards

Arvin

0 Kudos
Message 1 of 15
(4,369 Views)

I am actually more confused after looking at your VI.  It would help if you supplied actual inputs and expected outputs.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 15
(4,340 Views)

(posting by phone, cannot look at VI).

 

Also remember that after you delete row 3, the values of row 6 will have moved to a smaller index, for example.

0 Kudos
Message 3 of 15
(4,334 Views)

my expecting output is be able to delete row 3 and 6

Thanks in advance

0 Kudos
Message 4 of 15
(4,324 Views)

thanks for the hint but how can I delete two rows one array programmatically?

0 Kudos
Message 5 of 15
(4,321 Views)

sorry for confusions, I'm trying to delete two rows programmatically

0 Kudos
Message 6 of 15
(4,320 Views)

@altenbach wrote:

(posting by phone, cannot look at VI).

 

Also remember that after you delete row 3, the values of row 6 will have moved to a smaller index, for example.


In which case deleting starting with the largest index and working toward zero will work.

 

Arvin,

 

You did not include the data in the front panel so your question does not make sense.... particularly when you have 2D array not even used in your code and everything else is 1-D.

 

maybe post in your native language and let us do a Google Translate?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 15
(4,308 Views)

Try a conditional tunnel

Capture.png

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 15
(4,307 Views)

And if the rows to be deleted are sorted, you can start searching from the last found location (+1) to lower the big O complexity. 😄

0 Kudos
Message 9 of 15
(4,296 Views)

Adding a "Super CA" ModSmiley LOL Just because I can always do better

Super CA.png


"Should be" isn't "Is" -Jay
0 Kudos
Message 10 of 15
(4,285 Views)