LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

real time data recording problem

Hi, guys, I got a problem with real time data recording. the method I used is attached. But when the data file grows big, it takes lots of computation power from the RT system. any suggestions? Thanks
0 Kudos
Message 1 of 4
(3,655 Views)

Hi,

For starters, you seem to have a lot of on the fly Array creations / manipulations which would invoke the RT memory manager making the system very undeterministic. I suggest to preallocate some memory and use the replace Array elements or the new 'In place element structure' if using LV RT 8.5

Rather than having the auto index feature ON in the while loop, why not use the above principle ,use a smart buffer principle and store after every x elements n another low priority task concurrently. See Smart buffer example within the example finder.

Regards,
Ashm01

 

0 Kudos
Message 2 of 4
(3,631 Views)

ashm01, thanks for your reply. I got some questions. what does 'on the fly Array creations / manipulations' mean? and by 'preallocate some memory', do you suggest to build the array before the while loop begins? Thanks.

machman

0 Kudos
Message 3 of 4
(3,385 Views)
Hi machman,
You should consider using the initialize array function before your while loop starts executing.  When you add data to an array that has not been pre allocated or initialized, then it is considered "on the fly".  Here is a knowledge base that discusses different techniques to speeding up RT applications.
Eric A.
National Instruments
Distributed I/O Product Support Engineer
0 Kudos
Message 4 of 4
(3,332 Views)