LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Taking too long for array indexing

Hi all.

I am having issue with timely/slow indexing into a large array.

The system is LV 2015 running on Win10.

The problem area in the program is:

 

 

pushkin_0-1643592005813.png

 

The above reading process is all within a loop (time is to be less than 50 mSecs).

You can see my approach to measuring the time take.

With the above configuration as soon as the array is within contention the time for the loop start can be say 20 mSecs.  And also longer than 50 mSecs. 

While the prior stack (index 0) above,  gives < 1 mSecs.

 

It appears the system is not coping with managing the large array.

 

Index into the array with a standalone vi is fine (< 1 mSec).

 

The array is 7000 elements of the below;

 

pushkin_1-1643593045028.png

 

Please help ?

 

Regards JC.....

 

 

0 Kudos
Message 1 of 3
(1,184 Views)

Please share the actual VI with appropriate sample data to review/debug.

 

BTW, the stacked sequence structure is so obsolete, why use it?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 3
(1,172 Views)

Hi JC,

 


@pushkin wrote:

The problem area in the program is:

pushkin_0-1643592005813.png


Yes, there are some problems in this "code":

  • usage of stacked sequence
  • atleast two case structures around that sequence
  • controls hidden within structures
  • wires from right-to left, with lots of bends
  • there's no code, just an image of code: we cannot edit/run/debug images using LabVIEW!

Please upload your code, with some example data included!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(1,143 Views)