64
Appendix V: Simulink Model
The PID controller described in Appendix IV is easy to build in Simulink. Every
part of the controller is built in a separate subsystem. The coupling subsystem is
an approximate design for the actual coupling used in the car, Figure 1. The
transform subsystem is used to transform the pressure to VCS signal and vice
versa. The subsystem is also used to track quantization and saturation errors. The
Quantisation block in the Transform subsystem uses an S-function that in
Simulink just let the calculated signal VCS through while in the software and
when the code is generated a function call is used instead to return the VCS signal
value after being quantised throughout the main program.
Commentaires sur ces manuels