08-17-2017 05:15 AM
Hi everybody,
when i was continously acquiring the data after sometime it stops the program and it displays a dialog box window mentioning 'Not enough memory to run this program' i don't know what i have to do here, is it mentioning that i need to clear the buffer in a certain particular interval?, if anybody knows try answer my question.
Thank you in advance,
Regards,
Dinesh
08-17-2017 06:12 AM
You obviously have a memory leak caused by references that are not closed or something else.
There are several possible causes. Provide your code if you want some help.
08-18-2017 05:31 AM
Hi,
It was actually a small project for loading test to test the beam using 100 tonne capacity load cell, i have attached you a code here i was using usb 6211 to acquire the signal and my problem is at a certain time during program is running it says' Not enough memory to complete this operation' and closes the program automatically and when i look out for the error, where it was happening it denotes the for loop in main while loop, where Daqmx read is used.
Thank you in anticipation of your favourable reply,
regards,
Dinesh
08-18-2017 05:53 AM
Well, you do have a forever growing 2D array in there. I could not find where queue "d" is read, so I do not know what you are trying to do with that data. You probably also should not have a "snapshot" save, but instead have an "enable logging" so that you can just pass the data directly to the logging loop instead of constantly growing your array and using the local variable.