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

4 visualizaciones (últimos 30 días)
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 comentarios
Kaustubha Govind
Kaustubha Govind el 19 de Jun. de 2014
Could you please specify where you intend to run the query from - is this from an S-function?
Ajay Pherwani
Ajay Pherwani el 23 de Jun. de 2014
Editada: Ajay Pherwani el 23 de Jun. de 2014
I intent to write a m-script for that and call that in simulink model callbacks

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by