Research of Confirming Calculate Order Based on Simulink Model
Li Ju · 2014
The combination of Simulink simulation and code generation has great practical value.By analyzing the feature of models,Simulink models can be converted into C language code,which realizes the purpose of combination of Simulink simulation and code generation.And the primary problem is the confirmation of calculate order during the code generation process.From the information extracted from Simulink models file,the feature of module in Simulink model is analyzed and the dependence between modules from the relationship of the modules which is stored in graphsis is gotten.From the feature of module in Simulink model and dependence,two calculated orders are goten:the calculate order based on module which takes into account the underlying module and the calculate order based on hierarchy with consideration of subsystem.By analyzing and comparing the two calculate order,it was found that the calculate order based on hierarchy is better than the calculate order based on module.Finally by testing the model of f14 in Simulink,it was found that the two calculate orders are feasible.