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
已解决! 转到解答。
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?
Awesome!
I'll give this a shot tomorrow and post my code if it doesn't work.
Thanks for the quick responses!
- Evan