10-24-2005 11:29 AM - edited 10-24-2005 11:29 AM
Message Edited by quester on 10-24-2005 11:29 AM
10-25-2005 02:16 PM
Hi Quester,
You are on the right track by creating and saving a task. The DAQmxSaveTask() function saves the task in Measurement and Automation Explorer (MAX). You will be able to call this task from multiple programs, but not simultaneously.
Since you have already configured your task, you will not need to create a new task or configure any of the timing in your program. You will have to load the task using the DAQmxLoadTask function and then start the task with the DAQmxStartTask function. After that, you will perform the read or write operation and clear the task.
A good programming sequence structure is available under "Tasks in DAQmx" in the NI-DAQmx C Reference Help which is in Start >> All Programs >> National Instruments >>NI-DAQ. More information about specific DAQmx functions is also located there. I also recommend taking a look at some example programs. The DAQmx example programs for Visual C++ are located in C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C.
Regards,
Hal L.