Exporting simulink data during simulation

This forum if for discussing controls. Questions about how to implement controls in FAST are more appropriate to the CAE Tools forum.

Moderator: Bonnie.Jonkman

Posts: 33
Joined: Fri Feb 24, 2017 11:51 am
Organization: Università degli Studi di Perugia-Ingegneria
Location: Italia

Exporting simulink data during simulation

Postby Alessandro.Cetrini » Wed Oct 11, 2017 1:18 am


I have to export the Simulink output data of the Fast model in "real-time" but I don't know how to do it! Can anyone help me? If iI use the "To Workspace" block I can export the data only when the simulation ends but I want them for each time step.

I tried to write this in Matlab as i found on internet :

% Run Simulink

% Export real time data from Simulink
rto=get_param(block, 'RuntimeObject');
time= rto.OutputPort(1).Data;

But it only works to export the first time value!

Thank you!

Return to “Controls”

Who is online

Users browsing this forum: No registered users and 1 guest