08-26-2011 05:18 PM
I don't have time at the moment to look closely at your code, but I did run it using a simulated DAQ device - with no errors.
Perhaps a DAQmx guru can comment.
08-26-2011 10:12 PM
Hello Romaric,
As I check your code program previously your acquisition program is working fine with 1k, 2k, 5k, 10k, 20k, 50k samples. I check with probe then only I got this error. If you run your acquisition code without any debugging like probe and highlight execution its works.
Do one thing. Disable your calculation code and run only your acquisition part in your PC. This will ensure you the problem with your acquisition or somewhere else.
Here with simulated cards same code running continuously without any interruption from yesterday.
08-27-2011 05:52 AM
Thank you very much for your response.
I would like to know how to remove the probe? Because you and another person spoke me about probe but I don t know how do you disable this ? Could you explain me please?
And last thing you said me "Disable your calculation code and run only your acquisition part in your PC", I don t know what is it and where is it on my program, could you show me please?
Thank you very much again
Romaric GIBERT
08-27-2011 11:58 AM - edited 08-27-2011 12:01 PM
Dear Romaric,
Your code is working fine there is no error in your code.
I suggest you run your code on other PC may be some issue with your current running system.
In your code you have 2 loops means produce and consumer loops.
In your producer loop you perform the main acquisition functions.
This acquire data for your reference or calculation or further operations you are passing to consumer loop using queue function.
So I am trying to say disable your consumer loop and run only your producer loop means only acquisition. Now check still you are getting error or not.
08-27-2011 05:48 PM
Hi
Thank you very much for your response and your help
Currently I am in week end , I could do this test only Tuesday, but I tell you if it will be ok or not.
You asked me to do the test without my calculation code, do you think my consummer loop slow down my producer loop and so my producer loop has not the time the read the buffer. Do I put a timing loop do do work my program correctly? And if it yes, what value for my timing loop and where do I put my timing loop, in the producer or the consumer? Because during a run, my CPU runs at 100%.
Thank you very much again
Thank you
Romaric GIBERT
08-28-2011 11:54 PM - edited 08-28-2011 11:55 PM
Hi Romaric,
Now I got the problem.
When I run same code here in my system the system uses is around 10-14% and your system uses is 100%.
Check your system configuration I think your system configuration is not according to your application requirement or else check is there any unaccepted or useless services running in your system background.