%% Importing a Co-Simulation FMU into Simulink
% This model shows how to use the FMU Import block to load an FMU file. The
% FMU file supports execution in co-simulation mode. Simulink supports 
% stepping back and forth, tuning parameters in between, and saving states 
% for the FMU Import block as long as the FMU itself supports these features.

% Copyright 2017-2021 The MathWorks, Inc.

% --- Van der Pol Equation ---
% This FMU file models the Van der Pol equation, which is a nonlinear
% second order system. The FMU file supports FMI 2.0 Co-Simulation mode.
% You can change the communication step size in the FMU Import block
% dialog.

open_system('fmudemo_vdp')
sim('fmudemo_vdp');

%%
bdclose all
