It seems difficult to find examples of PID tuning without Simulink, or I am searching for the wrong things. I have Simulink but wanted to use Matlab.
I have an IC engine and am trying to tune the idle via the throttle blade.
I do have all the data for outputs : RPM, and inputs: Throttle Angle, Spark Advance, Desired RPM, Airflow. I also have what the controller adds/subtracts for airflow based off Target RPM error (which is what I am trying to adjust). I don't have how the throttle angle is related to with airflow, but I am sure I can calculate that if needed.
I also know that this is a Discrete PI controller sampled at 12.5 milliseconds.
I would like to convert my data into a response curve and then apply pid tuning. A lot of what I found was an impulse curve. This would align more with sustained load/change.
The airflow adder/subtrator is incremented based off RPM error.