Sign in to follow this  
briansawyer

How to shutdown PID loop

Recommended Posts

I am using a power supply to control the power level of the device. As a safety, it has an enable pin that I am turning off when the power is too high. I have a PID loop running in parallel that continues to run. How do I turn off the PID loop via programming? I have the trigger event set but I can't find the code to turn off the PID loop.

Share this post


Link to post
Share on other sites

use:

endpid(mypidloop)

All the high level objects have begin/end functions:

beginseq() / endseq()

beginlogging() / endlogging()

beginexport() / endexport()

beginpid() / endpid()

Note that all these functions take the name of the object (in your case the name of the pid loop) directly, not in quotes.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this