09-22-2006 07:37 AM
09-25-2006 03:44 AM
09-25-2006 03:53 AM
09-25-2006 05:07 AM
09-26-2006 03:21 AM
Hi Capuchin,
Well looking at the code it does seem like you are doing a lot of work with the data once it has been aquired. It may be something to do with that instead.
Assuming that you have a frame rate of 4 then you are sampling 1250 samples each time. and then you are completing over 1250 for loops, as well as a number of loops after this, and then the file writes etc.
I'm not sure what you mean bu pause the aquisition but I'm assuming youi take out the analog reads as well as the code that this relies on?
Try just taking out the code that this relioes on. You may find it's all the processing that is slowing you down. I there any way of doing the analysis offline?
AdamB
09-28-2006 02:33 AM
09-28-2006 05:28 AM
09-28-2006 05:41 AM
Thanks for the links Adam, they are certainly interesting. However the system is a real time acquire and display of data, rather than a subsequent analysis of results. The difference being that processing needs to be performed on current data rather than on *the next set of data in the queue*.
The DAQ card (or the USB card in the PC) seems to have quite a mighty buffer built in. I think for my application, the synchronisation between data capture and external components is going to be the hardest thing. Hopefully flushing the buffer before each cycle and ensuring the system is in synch through digital triggers will be sufficient for the task.
Cap