From: Stephen on
Hello,

I have a problem with simulink load and export data functions. After the simulation runs only time (tout) is in the workspace, States, Output, Final States variables are not.

Also, can anyone explain if it is possible to assign initial states to all points in the system? And if anyone knows how to reference the model structure to use Initial State for inputs ?
I get an error with x0 = Simulink.BlockDiagram.getInitialState(mdl)

thanks,
steve
From: Titus Edelhofer on

"Stephen " <kramer.steve99(a)yahoo.com> schrieb im Newsbeitrag
news:hi3gnr$9tc$1(a)fred.mathworks.com...
> Hello,
>
> I have a problem with simulink load and export data functions. After the
> simulation runs only time (tout) is in the workspace, States, Output,
> Final States variables are not.
>
> Also, can anyone explain if it is possible to assign initial states to all
> points in the system? And if anyone knows how to reference the model
> structure to use Initial State for inputs ? I get an error with x0 =
> Simulink.BlockDiagram.getInitialState(mdl)
>
> thanks,
> steve
>

Hi Steve,

the output variables are configured using the menu Simulation->Configuration
Parameters->Data Import/Export

Titus