using Embedded Coder R2018b, it is possible to perform Processor-In-Loop (PIL) testing using Simulink as a test harness with the automatically generated code running in the MULTI debugger.
(3) Please refer to the following documentation for more information on how to use Embedded Coder R2018b for PIL testing:
Best Answer