LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to select the last elements in a string

Solved!
Go to solution

@RuiZanzibar wrote:

Hello

 

I forgot to tell that i have a start (7B7B) and end (7D7D) frame in the broadcast, thats why the index must be (n-1). 

Hugs


That still makes no sense.  If you must end wit ha 7D7D, then you should be using n-3 to eliminate that footer.


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 21 of 23
(516 Views)

Here, this will explain what I'm trying to say.  Notice that the element I got removed from the Delete From Array is the same as the indexed element at index n-1.  I'm trying to make your code simpler here.


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 22 of 23
(506 Views)

And here is your code simplified to just a few nodes.


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 23 of 23
(497 Views)