12-05-2012 02:20 AM
@nathand wrote:
Try using just Clear Task with no Stop Task first.
Hey nathand,
it is the same. Then the program waits for clear task.
Regards
12-05-2012 02:35 AM - edited 12-05-2012 02:40 AM
My apologies for misleading you, then. Try one more thing (I tested this one, and it works, at least with a simulated device): use "DAQmx Control Task" from the DAQmx Advanced Task Options palette and set the action to abort.
EDIT: Note that you will still want to clear (or at least stop) the task after aborting. I am surprised that Clear Task didn't work since the help says that it aborts the task if necessary.
12-05-2012 03:22 AM
Thanks that works perfectly.
Do you maybe know if it is possible for NI 9423 module to have two input bits as edge detection?
First I did it with 1 bit, now I tried with 2 bits and I get this error: NI Platform Services: The specified resource is reserved. The operation could not be completed as specified.
Does this mean, that I can do the edge detection only on one line?
Regards
12-05-2012 03:58 AM
It appears from this white paper that you can do change detection on multiple lines so long as they're all grouped into a single task.
12-05-2012 04:12 AM
Hm, weird. ok thank you for your help.