Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Tabrez Alam Ansari
Tabrez Alam Ansari am 2 Apr. 2018
Bearbeitet: Herve Demezil am 27 Jun. 2018
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.

Antworten (0)

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by