LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Variable size array handling

Solved!
Go to solution

Dear LabVIEW Gurus.

 

Here is the internal part of the loop. I get an array from the loop outside the case structure and manipulate the last array element.

The problem is that I don't know the array's size in advance.

Therefore, I don't get this element.

I could get this size from a loop outside the case structure, but I don't know how to use it.

I would appreciate any suggestions about this case

0 Kudos
Message 1 of 3
(286 Views)
Solution
Accepted by topic author Zoycha

Hi Zoycha,

 


@Zoycha wrote:

The problem is that I don't know the array's size in advance.

Therefore, I don't get this element.


There is an ArraySize function. And the last element has index "size-1"...

 

Or you use the DeleteFromArray function: read its help...

 

(You could even reverse the array order and index the first element: so many options!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(281 Views)

Hello GerdW 

Thank you very much for the assistance.

Now it works perfect.

0 Kudos
Message 3 of 3
(219 Views)