PIDassist: Code generator

This is the last feature you will use, but you will like it! This pane will generate the PID controller code for you. All you have to do is copy and paste it into your SPLat program and add a GoSub to it.
Well, it might take a bit more than that, but not much. It will depend on whether you have any need to customize the code. Because you are implementing PID in SPLat as some exposed code, it means you have the option to add special features to optimize it for your work. Examples would be:
- Presetting the integrator and the output to non-zero values at startup.
- Freezing or remembering the integral and the output while something disruptive is happening to the process (maybe a purge cycle).
- Dynamically changing the PID parameters.
- Adding sensor linearisation
- Adding a custom output drive.
The code generator allows you to generate a program with built in timing for the cycle time or which will assume the timing is done elsewhere. It also lets you determine where in RAM (Data Memory) the PID function’s storage will be. There are many other variables that go into generating the code. These are taken from the PIDassist Controller pane and include the PID parameters and output dithering. You can also generate code where the setpoint is a fixed value.