Hi George -
You can control the state transitions of a Task using the
DAQmx Control Task VI. This lets you manually change the state the driver is in without having to fully traverse the state model (as would be required if you used a combination of Start/Stop VIs). You can learn more about the DAQmx Task State Model in the
NI-DAQmx Help file. The file is in the Start menu, under "Programs » National Instruments » NI-DAQ". Inside the file, the book is located at "NI-DAQmx Key Concepts » Channels and Tasks » Tasks » Task State Model".
Unfortunately, this is the only way to control which Task is active, and it's a software-timed operation. So you'll be restricted to the jitter of your operating system and its task scheduler. In Windows, this gives you about 10 ms resolution, which means that you could have no idea whether your 5-ms acquisition starts at the right time. You can play around with the feature, thoug. It could work for your application.
David Staab, CLA
Staff Systems Engineer
National Instruments