Simulink Models...

Provides a miniature IDE for building Simulink models on the real-time host for running during the third stage of the simulation test cycle. This is legacy support. The modern method of importing Simulink models is documented in Using SimWB Toolkit GUI in Simulink.

rtw_models.png 

Corner Controls

There are no Apply and Cancel buttons. Actions taken in this form take place on the real-time host immediately. It is essentially a remote-control for the compiler on the real-time host.

Expand All expandall00025.png

Expands the hierarchy tree showing Real-Time Workbench Files on the real time host.

Collapse All collapseall00026.png

Collapses the hierarchy tree showing Real-Time Workbench Files on the real time host to only show the immediate children of the Real Time Workbench Files node.

Demonstrate helpvideo00027.png

Opens a short video clip that demonstrates the basic workflow of this form.

Help help00028.png

Opens this section of the manual.

Simulink Files Tab

Simulink Files Tree

Shows the Simulink source files present on the real-time host. Double clicking on a file will open it in the editor.

Creatertw_create.png

Creates a folder on the real-time host under the selected folder in the Simulink Files tree. Enter a name for the folder in the text box, then press the Create button.

Buildbuild.png

Generates C or C++ source from the selected .mdl file and compiles it to generate an executable.

Make Cmake_rtw.png

Generates C or C++ source from the selected .mdl file.

Make Exe

Compiles the generated C or C++ source for the selected .mdl file.

Deletedelete00030.png

Deletes the file or folder selected in the Real-Time Workbench Files tree.

Upload Tab

See Upload Tab.

Settings Tab

Settings that the last .mdl file selected in the Real-Time Workbench Files was built with. These settings are stored with the model when it is built. When a .mdl file is elected, the title of this tab changes to its name.

Files to Load in MATLAB

Initialization (.m) files to be loaded in MATLAB before generating the Simulink source files.

Remove

Removes a selected file from the Files to Load in MATLAB list.

Addadd.png

Adds an initialization (.m) file selected from the Simulink Files tree to the Files to Load in MATLAB list.

Environment

Selects the environment variable file to evaluate before building this model. This setting is applied when the model is built. See Environment Variables....

Fixed Step (μs)

“Mathematical” step size used by Simulink to compute the next state for those Simulink blocks whose outputs depend on the time step size (for example, a sine wave with a given frequency).

Language

Language to generate the source files in.

C API Signals

Maps outputs of Simulink blocks into the RTDB. This will slow the execution of the model.

Solver

Selects the solver to use for the model.

Compiler Options

Additional options to pass to the compiler.

Linker Options

Additional options to pass to the linker.

Group

Selects the group that the Simulink model belongs to. Since Simulink source files (*.mdl and *.m files) are managed and edited by an external program (MATLAB), they do not belong to a group. Only the generated models belong to a group. It is not necessary to rebuild the model to change its group. An existing model is assigned to a new group when the Group setting is changed.

Edit Tab

See Edit Tab.

Make Output Tab

See Make Output Tab.

Simulink Models Tab

Displays a list of all the Simulink models built on the real-time host.

rtw_models_tab.png 

Deletedelete00031.png

Deletes the selected user program executable from the real-time host. User program executables are stored separately from the source files on the real-time host, unlike script executables which are stored in the directory with their source.