LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with a change detection in a loop

Solved!
Go to solution

@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

0 Kudos
Message 11 of 15
(729 Views)

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.

Message 12 of 15
(719 Views)

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

0 Kudos
Message 13 of 15
(715 Views)

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.

Message 14 of 15
(707 Views)

Hm, weird. ok thank you for your help.

0 Kudos
Message 15 of 15
(703 Views)