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.


Replace external input data in a real-time application with new input data





updateRootLevelInportData(app_object) updates


collapse all

Create an application object for real-time application ex_slrt_inport_osc. Use it to update inport data.

Change inport waveform data from a square wave to sine wave.

waveform = sinewave;

Create an application object.

app_object = SimulinkRealTime.Application('ex_slrt_inport_osc');

Update inport data.


Download the updated inport data.

tg = slrt;
load(tg, 'ex_slrt_inport_osc');

Input Arguments

collapse all

Provides access to methods that manipulate the real-time application files.

Introduced in R2017a