Hello @satvenmechatron ,
Are the results which you get from PIL covering the entire simulation time? I am asking this because right now I don't understand if you are worried that the simulation executes much faster on the HW in PIL than it should or I want to know if you get some errors and the
For example, if you set the stop time for 10 seconds but in PIL it takes one or two seconds to run the simulation band the results look good covering all the sample points, then this is normal. If the sample time is 1 second, so you have to execute that basically 10 times, Simulink will not execute the algorithm at each second it will optimize the execution. It will do that much fast but will show you the results as if the code would have been executed at each step time with respect to timing.
My worry is rather or not at some point, something goes wrong and the Simulink loses communication with the board.
Regards,
Marius