LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Loop in a Loop will not terminate

Solved!
Go to solution

I have two loops.

The outer loop has a stop button. However that stop button does not stop the code. 

What am I doing wrong ?

0 Kudos
Message 1 of 2
(180 Views)
Solution
Accepted by topic author PBNRC216

Your inner loop doesn't stop because the implementation is to stop the inner loop only on an error and you've configured DAQmx for continuous sampling.

santo_13_0-1721166161563.png

Remove the outer loop, use the Stop button with OR logic with the error in the inner loop. Why do you need the outer loop?

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 2
(171 Views)