This program simulates an electric dynamometer with a PID controller.
An absorption dynamometer, also known as a" dyno", is a device that measures the instantaneous rotational speed and torque of an engine, motor, or any rotating prime mover while acting as a load. This is accomplished by using various methods to brake the tested motor. Electric dynamometers use another DC motor (a load motor) as a generator and couple it with the test motor to produce an opposing torque that resists the motion. The graphical representation of the dynamometer is illustrated below.
We want to control the torque of the test motor by adjusting Rl. The system is modeled using the fundamental principles, and the state-space representation of the system model is shown below.
The objective is to simulate the system's closed-loop response to investigate the behavior. The tricky part is that