Battery management systems and electric motor drive control firmware are key components of today’s electric vehicles. Applying the Model Based Development (MBD) approach enables testing and verification during the early stages of development reducing cost, development time, and firmware defects. Being able to quickly iterate between block diagram designs, automatically generated firmware, and Hardware-In-the-Loop experimenting is a key MBD productivity enabler. This webinar illustrates the automatic code generation process for a Permanent Magnet Synchronous Motor drive control and a Battery Management System emphasizing the ease that design iterations can be conducted. Data collection methods, parameter tuning, setpoint adjustments, and CPU usage are also discussed.