02-28-2006 07:53 AM
02-28-2006 02:25 PM
Hi Debonair,
I have measured that Stop Task is _normally_ about 200 microseconds (not milliseconds) on my Dell workstation. I haven't measured it on an 8196 but I suspect the time is similar. So you are right, the fact that Stop is taking 200 ms indicates there is something odd going on.
Inside NI-DAQmx, when you call Stop, we immediately stop a task in the hardware. However there is some additional delay because we have to wait for a secondary thread to finish some cleanup processing. The reason we use a secondary thread is somewhat complicated so I won't go into that here. Unfortunately this is not configurable so there is no way you can disable this thread from executing. However, under normal circumstances, this additional delay is very small (only a few microseconds), so I'm not sure it completely explains your problem. However, it could be a factor depending on how soon the OS allows the secondary thread to run.
It could be some additional information will help diagnose this:
1. Is your 8196 controller running LabVIEW ETS or Windows?
2. Have you tried tweaking the priorities of your application or of your data acquisition VI?
3. Is your synchronized AI/AO task putting a heavy load on the system?
4. How many samples are you reading or writing at a time?
02-28-2006 08:32 PM
03-01-2006 01:20 PM
03-02-2006 02:04 AM