05-22-2009 07:58 AM
Hi all,
A bit embarrassed to ask but I have a simple question. Is there, BTW, a general document about DAQMX, not just help pages. I always miss the overview and have to look in the examples. This works as long the examples match your goal, otherwise I start trying around. Suggestions are welcome.
To end a digital out session I want to write all 1's to the 32 bit port p0 of a PCI-6229. See attached pic. Now,
1: do I first start the task and then write data? Or write data and then start?
2: do I have to 'wait until done' before stopping and clearing?
your answers are appreciated!
Mark
Solved! Go to Solution.
05-22-2009 09:00 AM
For a general overview, see the Getting Started With DAQmx page.
In your example, it's fine to first start the task and then write the data.
It's not always necessary to do a Is Task Done. When you have a static write like in your example, you don't need it. If you were doing a continuous, hardware timed generatation, then it would be appropriate.