Hello,
I'm trying to do a PIL simulation in Simulink. My setup is as follows:
- Real World: A Simulink model that generates the synthetic measurements
- On Board: A Simulink model that implements the logic that will then be deployed into the board
- All Models: A top Simulink model that references the Real World and On Board models
Also, some DataDictionary are linked to the models, in particular:
-Real World is linked to RealWorldDD, which is set to have a variable step size solver to ensure the best results
-On board is linked to OnBoardDD, which is set to have a fixed step size solver
For the purposes of this question, let's assume a simple case in which the Real World model generates random numbers and the On Board model simply add 1 to the given value.
Unfortunately, I do not have the physical board on which I have to deploy the code, but I have an emulator installed in my PC and Simulink add-ons for my board do not exists.
In addition, I need to pass informations between simulink and the emulator.
My questions, in regards, are:
- In the All Models, that is the top model, which solver shall I set? Should i link it to RealWorldDD or to OnBoardDD?
- How do I setup the PIL Simulation given that I have an emulator of a board not natively supported by Simulink?
- How can I create a connection between simulink and the emulator? Is it possible to create a virtual serial link?