how to know whether the model running is in simulation model, code gen mode or in rapid accel mode in script?
1 view (last 30 days)
Show older comments
Ajay Pherwani on 19 Jun 2014
Edited: Ajay Pherwani on 23 Jun 2014
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 ?
Find more on Model, Block, and Port Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!