LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

CCGArrSupport2.c

Hello,

 

I'm a student using the LM3S8692.  I have a labview VI which captures data from my ADC.  The ADC is an SPI device and I pull from it in a for loop.  I was trying to capture 5000 samples and store it into an array.  When I build the software I get the following runtime error:

 

 

I tracked it down and figured that if I lowered the amount olabviewerror_1.PNGf ADC values stored (for instance to 512) then the code builds fine.  I conclude that this a memory error.

 

Where can I find documentation on further runtime errors like this?  I searched Google but came up with only one result.  Is there a complete resource documentation?

 

I have attached an image.  Hopefully this helps, I can attach the VI if this would help.  Let me know.

 

Thank you, 

Nicholas 

 

 

0 Kudos
Message 1 of 3
(6,029 Views)

Hi Nicholas,

 

It looks like you didn't include the actual error that you are seeing, so post this if you can. There is a KnowledgeBase document that addresses ARM runtime errors, and discusses heap memory and ways to try to fix this issue. Try the steps in the article, and post if this works or not.

 

Regards,

Stephen S.

National Instruments
Applications Engineering
0 Kudos
Message 2 of 3
(6,004 Views)

Hello !

 

We met a similar error, as you suspected it came from a memory that grow indifinitely. In your code the problem probably come from the indexed array. Each time the loop iterates new datas are added to the array and come a time were there no memory space left.

 

You should perhaps save your data on the Sd card or send it somehow.

 

I hope it'll help

 

Tomasss

0 Kudos
Message 3 of 3
(5,949 Views)