I'm looking for design a real time Processor-In-the-Loop (PIL). This simulation consists in a real time control where the model plant will run in Matlab/Simulink and the controller will run in a specific hardware (arduino).
I have tried so far to communicate the target and Simulink via serial (USB), but the obtained results are not the ones expected.
In this sense, which is the most recommended way to perform this simulation? Maybe using a DAQ (Data Acquisition Board) or others platforms.