LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory Allocation in Labview PDA?

Hi!
Labview PDA 7.1, running on Axim x50v.
Basically the VI receives a relatively large string over TCP connection, converts it a 2-D array [dimensions about 2x1000], and displays this on a waveform graph.
It functions fine, except that after displaying a few (10-15 or so) waveforms, I get an error:
"Error
App failed. Error code 30246002.
Unable to allocate memory."
 
Which makes sense given the relatively small memory on the PDA.
So, was wondering if there was any way to deallocate the memory for the large array occassionally? Or if there was anything else that would eliminate this error? I know there are PDA memory functions that give the total memory and current usage.
 
I'm attaching the PDA VI. Running on another system is a loop sending data over the TCP connection, string from a flattened 2-d double array of dimensions 2x1000
 
Thanks!
-Pavan
0 Kudos
Message 1 of 3
(2,857 Views)

Pavan,

There's no way to deallocate memory on the PDA (that I know of), but one thing you could try is to specify an array of a certain size and then use Replace Array Subset instead of building the array, so that the array always stays the same size. I don't know if this is a possibility for you, but I thought it would be worth mentioning.

Tyler S

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

I remember reading about that on one of the NI pages; unfortunately as I have to unflatten from string to 2-d double array, and I don't know the length of the array beforehand (its 2 by 'x', where x is variable - I'm receiving 2 waveforms of unknown length); I don't think that will work.

Thanks for the idea though!

Any other thoughts?

-Pavan

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