This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Real-Time Van der Pol Simulation

This example shows a real-time version of the Simulink® Van der Pol simulation model.

This model does not need any external signals, so it does not need any data acquisition hardware or driver. This makes the model ideal for the first experiments with Simulink Desktop Real-Time™, without need to worry about proper I/O hardware configuration.

How to run this model in Normal Mode

  1. Double-click the orange button to switch to Normal Mode if needed.

  2. Start the real-time execution using Simulation->Run.

  3. Observe any missed ticks on the Missed Ticks scope.

How to run this model in External Mode

  1. Double-click the orange button to switch to External Mode if needed.

  2. Start the real-time execution using Simulation->Run. The model will automatically build, connect to Simulink in External Mode and start.

  3. Missed ticks will be always zero.

Open the model

open_system(fullfile(matlabroot,'toolbox','sldrt','sldrtexamples','sldrtex_vdp'));

Close open Scopes

close_system(find_system(gcs ,'BlockType', 'Scope'));

Clean up

clear
close all
bdclose all

See Also