Block Diagram Simulator With Microcontroller-In-The-Loop Capabilities