(ongoing...)
In previous steps 0 and 0b, we've seen how to create and calibrate a module.
This step 0c deals with the Simulink functionality : insert a module in a Simulink model.
As said before, from this starting model, the aim is to insert two modules FB_LatAcc et FB_YawRate :
Two modules FB_LatAcc_vU0 and FB_YawRate_vU0 are now created, with some empty code in it.
The objective is to fill them with code coming from the model above.
There are two ways to achieve that :
1. copy/paste code from the model to the library, and insert the libraries back to the model and connect them correclty
2. or insert the empty library in the model and migrate the code from the model inside the module
In that case and after migration of code is done, module has to be re linked as a classical Simulink Library use.
Whatever the method is, modules have to be inserted in the model.
1. this can be made by hand by copying from the library to the model :
2. or by using the Insert Simulink functionality :
In the current Simulink System (gcs Matlab instruction), select the module to insert and press Insert from the Simulink actions zone :
Then, migration process can be done for both modules FB_LatAcc and FB_YawRate.,
To see the final result, open this model and see modules FB_LatAcc_vU2 and FB_YawRate_vU2
As it can be noticed, version of modules has turned from intially empty versions vU0 into correctly filled version vU2
Indeed, during design process, it might be worthy to split progress into several steps, i.e. versions.
For example, starting from version vU0, user may use steps vUstep1, vUInitial, ..., vU2, ... : these are evolutions.
In this step 0c, we've seen how to insert a module in a Simulink model :
Next step 0c deals with the Evolution functionality of a module.