A standalone S-function for SIL verification (using ert target)

I want to do SIL verification for Top-level model.
Setup:
  • Win 7 64-bit
  • Matlab R2015b
  • Simulink Coder and Embedded coder
What I am doing:
  • To do SIL verification of model, I selected the ert.tlc target and selected "create SIL block" option.
  • Build the model
  • Model build finished. S-function "MyModel_sbs.mexw64" generated and an untitle model created with SIL block.
What is problem:
  • "MyModel_sbs.mexw64" only works with generated SIL block.
  • SIL block is nothing but a masked SIL/PIL libray block which always check the absolute path and MyModel_ert_rtw directory.
  • If directory is not found then its asks to rebuild the model again.So If I try to run model from other folder or other computer the generated SIL block is not usable.
What I expect:
  • I expect that the generated S-function "MyModel_sbs.mexw64" is standalone s-function and I can use it in any other model using "User-Defined Functions/S-Function" block.
  • As I remember from older Matlab version (R2011b), generated SIL block was a blue color block without mask and S-function was standalone.

댓글 수: 3

Herve Demezil
Herve Demezil 2018년 6월 27일
편집: Herve Demezil 2018년 6월 27일
Did you find a solution to this problem?
I am also interested in an answer to that question. Is it possible to produce a stand-alone binary file (i.e. MyModel_sbs.mexw64) for SIL that can be run from Simulink (using an automatically generated block), without requiring anything else from the code generation process except the MyModel_sbs.mexw64 ?
TAB
TAB 2024년 12월 4일
편집: TAB 2024년 12월 4일
I never recieved any reponse to this issue and don't know the solution. Disappointing that only new things we see in Matlab are more problems.
There is no meaning of creating a standalone executatble if it can't run standalone.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

질문:

2018년 4월 2일

편집:

TAB
2024년 12월 4일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by