04-04-2008 01:51 AM
04-04-2008 03:03 PM
Fizyq,
Are you using loops in your application?
How do you have your acquisition configured? Number of samples, sample rate, etc..
Have you always observed this behavior?
Can you use a shipping example that came with DAQmx and get the same outcome?
The examples are located at: C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples
04-07-2008 08:59 AM
>Are you using loops in your application?
Yes. In EveryNSampleEvent callback I read inputs until ther is no more samples.
I have two callbacks gegistered by
1. DAQmxRegisterEveryNSampleEvents
2. DAQmxRegisterDoneEvent
In 1. I read inputs, when error ocures I StopTask
In 2. I StopTask
>How do you have your acquisition configured? Number of samples, sample rate, etc..
I have continous aqusition with 25kS/s/ch (4 AI from NI 9233 and 2 AI from NI 9205)
>Have you always observed this behavior?
Yes. On Intel Celeron 600MHz it stops for 9-11 minutes, on Pentium 4 1.6GHz it stops for about 5 minutes.
I StopTask only after some errors - I turn off /turn on power suply or I pull out/insert USB communication cable.
>Can you use a shipping example that came with DAQmx and get the same outcome?
>The examples are located at: C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples
I will check the example you mentioned.
Thanks
04-08-2008 11:46 AM
Fizyq,
It sounds like something in your code is causing a hang. If you can post back your results from one of the example programs installed on your machine, which will help in determining the source of the issue.
Also, when you do post your results can you post your code that is causing the issue; this will also help in troubleshooting.
Thanks!