From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-11-2012 05:43 PM
Hello,
I need to iterate my data acquisition. Currently, I am doing this by creating, implementing, and clearing DAQ tasks inside a For Loop that is iterated as necessary. Unfortunately, the creation of these DAQ tasks significantly slows down my code.
I would like to be able to create the tasks outside the loop, pass them in, and restart the tasks at the beginning of every iteration. Is there an easy way to do this?
Alternatively, is there a way to make the standard DAQmx Digital Start Trigger trigger multiple times (so that it starts data acquisition at every pulse in a long pulse train as opposed to just the first pulse)?
Thanks!
- Evan
Solved! Go to Solution.
04-11-2012 05:56 PM
Can you share your code, or at least the relevant portion of your code? How are you configuring the DAQ task? Is there some reason you can't just restart the existing task, instead of destroying the task and recreating it?
04-11-2012 07:17 PM
I whent ahead and created this example for you (And many others.)
04-11-2012 11:13 PM
Awesome!
I'll give this a shot tomorrow and post my code if it doesn't work.
Thanks for the quick responses!
- Evan
04-12-2012 12:09 AM
@ERM19 wrote:
Awesome!
I'll give this a shot tomorrow and post my code if it doesn't work.
Thanks for the quick responses!
- Evan
I don't think you will post your code... 🙂
04-12-2012 03:12 PM
Worked like a charm 🙂
Thanks again!