Model-Based Design has helped engineers improve product quality and reduce development time by moving design tasks from the field and lab to the desktop. With the help of simulation models developed using Simulink, design defects can be identified and rectified at an early stage of development. Moving to a real-time environment, for example in a lab or a prototype, Simulink models of a plant and controller that were used in the desktop simulation can be reused for real-time testing in rapid prototyping or hardware-in-the-loop (HIL) test setups. Using a permanent magnet synchronous motor (PMSM) speed control example, MathWorks engineers will demonstrate the various steps—including preparing the model for code generation, configuring I/Os, tuning parameters, logging data, and choosing the right target hardware—that are involved in moving from the desktop simulation to the real-time testing environment using xPC Target™ Turnkey.
Prasanna Deshpande is an application engineer with MathWorks India specialising in control design and automation. He closely interacts with customers in different domains to help them use MATLAB and Simulink for physical modelling and control design. Prasanna brings seven years of experience working with the automotive Industry. Prior to joining MathWorks, Prasanna worked as a technical leader in the Automotive Group of KPIT Cummins Infosystems Ltd., where he gained expertise in rapid control prototyping and hardware-in-the-loop simulation technologies for various automotive customers. He has also worked with Mahindra & Mahindra Ltd. Prasanna holds a bachelor’s degree in electronics and a master’s degree in instrumentation from University of Pune.