Electrohydraulic Servomechanism
This demonstration shows how to model an electrohydraulic servomechanism using Stateflow and Simulink.
The Stateflow chart PWM_driver_ckt controls the energized versus off state of the solenoid.
Simulink subsystems are used to model the magnetic circuit, armature and piston motion, and valve flows.