07-24-2005 11:33 PM
07-25-2005 08:27 PM
Original codes:
// Write the data in the channels
DDC_AppendDataValues (channels[0], tempDataWrite,20000);
DDC_AppendDataValues (channels[1], tempDataWrite+20000,20000);
Corrected codes:
// Write the data in the channels
DDC_AppendDataValues (channels[0], tempDataRead,20000);
DDC_AppendDataValues (channels[1], tempDataRead+20000,20000);
07-26-2005 09:42 AM
07-26-2005 08:13 PM
07-28-2005 02:25 PM
I think there are some performance issues when appending to large files using the DIAdem library. Performance decreases as the file grows.
You should be able to minimize the performance issues by saving less frequently or saving only after you have appended all data. The downside of this change is that by saving less frequently, you will be losing more data if your program shuts down unexpectedly. This will not necessarily reduce the memory usage of your application, but I think it will make it run faster.
I hope this helps.
-Jeff
07-28-2005 08:19 PM
08-01-2005 10:08 PM
08-01-2005 10:08 PM
08-02-2005 08:12 AM
At the risk of stating the obvious, how many times do you press your TEST button? Because of the way you allocate memory, every time you press it more than once you will leak 640000 bytes of memory. Not a problem if you only press it the once, but it is an obvious potential problem.
I usually do all my memory allocation (and de-allocation) in the main() function, immediately around the call to RunUserInterface().
JR
08-02-2005 08:18 PM