From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Very large array cause the program to slow down

Dear Sir or Madam,
I am writting an array of data to my AO board to generate analog signal with LabView.Because the time resloution is high(200usec),and the whole time is long(~100sec),the data array becomes very large (8 X 5*10^5) (8 chanels),and the delay time between starting runing and the signal really output is long(~20sec).
I wonder when some vi (ex.build array.vi..) is dealing with large array,it delays the speed of running because the number of loops I am using is independent of array size.
How could I overcome this problem?
Is adding some RAM helpful?

Thank you for your kind help!!
0 Kudos
Message 1 of 2
(3,121 Views)
dont use build array functions in a rt loop, create the array before and use
replace array subset, then it should work.
for the date u want 2 save is 32mb ram more than enough.
gl&hf
ventilator 😉

"cooler" schrieb im Newsbeitrag
news:506500000008000000F1600000-1031838699000@exchange.ni.com...
> Dear Sir or Madam,
> I am writting an array of data to my AO board to generate analog
> signal with LabView.Because the time resloution is high(200usec),and
> the whole time is long(~100sec),the data array becomes very large (8 X
> 5*10^5) (8 chanels),and the delay time between starting runing and the
> signal really output is long(~20sec).
> I wonder when some vi (ex.build array.vi..) is dealing with large
> array,it delays the speed of runni
ng because the number of loops I am
> using is independent of array size.
> How could I overcome this problem?
> Is adding some RAM helpful?
>
> Thank you for your kind help!!
0 Kudos
Message 2 of 2
(3,121 Views)