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.


Represent application files on development computer


Object represents application files on the development computer. You can create it only after the real-time application has been built.

Object provides access to a method that updates external input data for root-level Inport blocks.


app_object = SimulinkRealTime.Application(application_name) creates an object that you can use to manipulate real-time application files on the development computer. You can create it only after the real-time application has been built.

The SimulinkRealTime.Application function accepts these arguments:

  • application_name — Name of real-time application (character vector or string scalar). For example, 'ex_slrt_inport_osc'.

    This argument is the file name without extension of the .mldatx file that the build produces on the development computer.

  • app_object — Represent real-time application files on the development computer.

    This argument provides access to methods that manipulate the real-time application files.

This example creates an application object for real-time application ex_slrt_inport_osc.

app_object = SimulinkRealTime.Application('ex_slrt_inport_osc');


expand all

This property is read-only.

Name of real-time application created when application was built.

When 'on', this parameter requires that the real-time application uses the RAM disk (ERAM) for data logging, even when the target computer has a hard drive.

The change takes effect on subsequent downloads of the real-time application. If you rebuild the real-time application, the setting is lost. To make the setting permanent, set the model parameter in the Command Window:

set_param(model_name, 'UseERAMForLogging", 'on')

The model parameter is hidden.

You can assign arbitrary vector data to the UserData field. You can access this data only from the development computer.

Example: {'This string', 10}

Object Functions

SimulinkRealTime.Application.updateRootLevelInportDataReplace external input data in a real-time application with new input data


collapse all

Waveform data was originally a square wave. Change it to a sine wave.

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');

Introduced in R2017a