LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

on speeding up rebuilding a quite large 2d array

Solved!
Go to solution

Basically, I have got a 1024x1024 2d array (fixed size). What I do:

 

1. Perform an FFT along each line (1024 times)->this is fast

2. I split my big array in 8 sub-arrays to take advantage of my 8 cores

3. Rebuild my 1024x1024 2d array -> this is slow

 

To perform step 3 I used "Build Array" vi but also I firstly initialised and used the "Replace subarray" vi. Unfortunately it's still very slow. Could anyone suggest me a way to speed up the "rebuilding" of my 2d array, or do you have another solution to use all the cores without splitting up my big array?

 

Thanks a lot. 

0 Kudos
Message 1 of 3
(2,796 Views)
Solution
Accepted by topic author Adrian_Bradu

Hi Adrian,

 

use a FOR loop set for parallel processing.

 

Or mimic that automatism of LV by using the DataValueReference to work on the same memory in different (FOR) loops.

 

All this applies to LV2009 - you didn't note your LV version...

Best regards,
GerdW


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

I do use LV2009, so I can set a FOR loop for parallel processing!

Now it's fast!

Thanks a lot!

0 Kudos
Message 3 of 3
(2,781 Views)