matlab - Simulink save final state leads to compile error -
i have simpe simulink model

it compiles fine unless try save output states:

then face error when try compile it:
saving complete set of simstate supported model running in normal or accelerator mode, , model blocks running in normal mode.

why happen , how around that?
update:
my model set fixed step , set normal mode: 
as mentioned in comments, "building" model purpose of generating code/executables, , saving final states not supported code generation. if want run model, press "run" button, not "build" button , should work. see simulink documentation more details on how run model.
Comments
Post a Comment