Quantcast
Channel: PTC Community : All Content - PTC Mathcad
Viewing all articles
Browse latest Browse all 3331

While loop not working correctly.

$
0
0

Hi all.

 

I am trying to write a program that will increment a value of x by a predetermined amount, run through a few equations, and then re-evaluate that condition. If that condition is not met, return the value of x to H_loop.

 

I have attached the program, "loophelp". You will have to change the line in the program "H_loop" from "STDD > STDD_allow" to "STDD < STDD_allow" for it to run.

 

I wrote a program that was very similar in structure to the right of the program I am having trouble getting to work. I am not understanding why that one runs with no issue, but the one on the left will sit and spin its wheels ad infintium.

 

Thanks for any help.

 

-JW


Viewing all articles
Browse latest Browse all 3331

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>