LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pda array operation

Hello,

I am reading data through the serial port of the PDA, and framing them into 1D arrays. I am storing these 1D arrays as successive rows of a 2D array. However when I wish to read these rows again, I need a time delay of atleast 10ms between successive reads.

This problem does not come on the first time that I run the code after compilation, but is more common on successive runs.

I am using the BuildArray, and DeleteFromArray blocks. This code when run on the PC also does not increase the memory being used, hence I dont suspect it is a memory leak.

Any answers for why this may be happening on successive runs or what may be some solutions to try.

Thanks in advance.
0 Kudos
Message 1 of 3
(3,061 Views)
Have you connected a empty array into the initializer terminal?  If its not having problems on the first run, maybe its conflict with data stored in the feedback loop.  Also maybe use a sequence structure to ensure its in the exact order you want it?  I also prefer the index array over the delete from array, though I dont think there is  too much of a difference. 

Maybe also post your code because I'm not sure If I fully understood the problem.

Message Edited by SeaDevil on 10-10-2005 12:37 PM

0 Kudos
Message 2 of 3
(2,962 Views)
It's not at all clear what your problem actually is, but my guess would be that a PDA executable is not as efficient with memory handling as the run-time engine on a PC would be. Add to this the fact that a PDA has limited memory and this may actually be the source of your problem (whatever that problem is). Instead of using Insert and Delete, you can try initializing your array to a preset size and using Replace Array Subset and only adding rows to your array if you are getting close to filling it.

___________________
Try to take over the world!
0 Kudos
Message 3 of 3
(2,951 Views)