LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dialog Box opens continuously in a Case Structure inside a While Loop

Solved!
Go to solution

Your "Not equal true" is pure Rube Goldberg (Same as a "not"). Just wire to the case structure and fill the two cases accordingly. You can even swap the case content by right-clicking the case structure.

 

altenbach_0-1667513939400.png

 

 

 

You need the feedback node (or "boolean crossing ptbypt"). Do you have difficulty finding the feedback node? (I gave you a link and my code version!)

 

A 500ms is a bit too long because it make the UI noticeably sluggish. Even a 1ms wait would drop the CPU use well below 1% compared to no wait.

 

Notice the red dots? They mean that your constants have the wrong representation. Why did you make them I16?

 

Your termination condition does not correspond to the question. The question is "continue?", but clicking [Yes] stops the loop instead of continuing the run. Seems backwards.

 

 

0 Kudos
Message 11 of 12
(335 Views)

Apologies, I thought it was just the screenshot. Yes, yours works exactly how it's supposed to thank you very much. The feedback node was throwing me off because I didn't know you could change the direction (I do now). And I used the 'not equal to' initially because I also thought, wrongly, that it wouldn't take into account the tolerance if it was greater than 25 (not sure if I fully understand why). 

 

Anyway, clearly, I have a lot to do. And 3 other exercises to clean up from what I learned today. Thanks for your time.

 

Kern

 

 

 

 

0 Kudos
Message 12 of 12
(326 Views)