**5. Processor in the loop testing**

Model based development is an approach that can handle complexities of various range of products. It is primarily used for early error detection. Using that approach, control system can be tested in phases. The first phase is called model in the loop (MiL) testing, the second one is processor in the loop (PiL) and finally there is hardware in the loop (HiL). In this work except from MiL, also PiL testing has been done. The testing equipment consists of:

*Synchronous Machine Nonlinear Control System Based on Feedback Linearization… DOI: http://dx.doi.org/10.5772/intechopen.89420*


Data exchange between Simulink model and C2834x control card has been done in real time by serial RS232 communication. During the PiL testing, data precision has to be reduced from double to single. For this reason some error in performance is expected.
