how to know whether the model running is in simulation model, code gen mode or in rapid accel mode in script?

조회 수: 2 (최근 30일)
In model initialization , If I want to know whether the model running is in simulation model code gen mode or rapid accel mode , how can we get that ?
Is there any function that we can use ?
I know a function "rtwenvironmentmode",but is gives information about simulation correctly
Is there any other function that gives the information ? or are there any object parameters of model that I can read in order to get the information ?
  댓글 수: 2
Kaustubha Govind
Kaustubha Govind 2014년 6월 19일
Could you please specify where you intend to run the query from - is this from an S-function?
Ajay Pherwani
Ajay Pherwani 2014년 6월 23일
편집: Ajay Pherwani 2014년 6월 23일
I intent to write a m-script for that and call that in simulink model callbacks

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Import and Export에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by