As long as we have a simulation model of Simulink that can generate code, we can use this module to realize the real-time operation of this model in the TSMaster environment. Thus our algorithms can be involved in the real-time simulation of HIL and SIL in the early stage of software design. Meanwhile, with the support of the applet, we can also debug and monitor the algorithms in a detailed way, and even release the binary files to other users for co-simulation, so how do we realize it?
> Let's start from 0 and give an example to illustrate: first we switch to the first page, the SIL and HIL page, we can see that this page has 4 steps, according to the sequence of the execution of these 4 steps, you can quickly build a HIL environment. So the first step is the configuration of the algorithm model, he gave two inputs, one is the name of our applet, the second is the Simulink model file. For the first input, just give us a name for the newly constructed applet, for example, the default Model1, we input and click on the green tick on the right side, its function is to determine whether Model1 exists. If it doesn't exist, create one, if it does, use this Model1.