SIL using model reference
    조회 수: 4 (최근 30일)
  
       이전 댓글 표시
    

I want to understand the difference between thsese two 'code interface' options.
What difference it makes in each(Model Reference, Top Model) of the option shown and what is recommended option for perticular application?
I have gone through the 'Help' literature but it did not elaborate in detail which I need.
Can anyone help? 
댓글 수: 0
채택된 답변
  Fangjun Jiang
      
      
 2020년 2월 14일
        I thought the document was clear.
To deploy the generated code as part of a larger application that uses the referenced model, specify Model reference. To deploy the generated code as a standalone application, specify Top model.
댓글 수: 2
  Fangjun Jiang
      
      
 2020년 2월 17일
				It mostly involves shared files such as header files and data files. If you have a top level model and one or more referenced models, certain header files don't need to be generated for every model. They can be put in a shared folder. But if one of the referenced models is intended to be used somewhere elase separately and alone, all those header files need to be generated.
There is a use case where a top level model includes many referenced models and has been proved out. The user might want to generate code for all the referenced models in one shot and all the referenced models are intended to be used separately. That is when "Top model" is selected. Otherwise, if you just want to be able to run your whole model simulation in SIL mode, use "Model reference".
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

