Hi Guys,
I have an issue with NITasks and assessing their state.
Part of my program involves stopping/aborting a task in order to regenerate an output signal and restart the task.
The issue is that after calling analogOutTask.Control(TaskAction.Stop); or analogOutTask.Control(TaskAction.Abort); I am unable to check if the task state. So when I try to write the new samples to the task, I sometimes get a DAQmx.DaqException as the Task is currently in the process of being aborted.
How do I query the state? Or is there a callback for state change?
Thanks