How to shutdown PID loop


briansawyer

Recommended Posts

Posted

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.

Posted

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.

Archived

This topic is now archived and is closed to further replies.