Real-Time Workshop    

Target-specific Code Generation Options

Different target configurations support different code generation options that are not supported by all available targets. For example, the grt, grt_malloc, ert, rapid simulation, Tornado, xPC, TI DSP, and Real-Time Windows targets support external mode, but other targets do not.

This section summarizes the options specific to the generic real-time (GRT) target. For information on options specific to other targets, see the documentation relevant to those targets. Available Targets lists targets and related chapters and manuals.

Figure 2-5: GRT Code Generation Options

MAT-File Variable Name Modifier Menu

This menu selects a string to be added to the variable names used when logging data to MAT-files. You can select a prefix (rt_), suffix (_rt), or choose to have no modifier. Real-Time Workshop prepends or appends the string chosen to the variable names for system outputs, states, and simulation time specified in the Workspace I/O pane.

See Workspace I/O Options and Data Logging for information on MAT-file data logging.

External Mode Option

Selecting this option turns on generation of code to support external mode communication between host and target systems. This option is available for most targets. For information see External Mode.

Ignore Custom Storage Classes Option

When this option is on, data objects with custom storage classes are treated as if their storage class attribute is set to Auto.

This option is useful if you have defined data objects with custom storage classes in your model (for use with the Real-Time Workshop Embedded Coder), but also want to generate code from your model using other targets (such as GRT or grt_malloc). In such a case, you can turn Ignore Custom Storage Classes on to generate code that does not include custom storage definitions, without reconfiguring the storage definitions of the model.

For the GRT and grt_malloc targets, this option is on by default. For the Real-Time Workshop Embedded Coder, this option is off by default.

You can also enter the option directly into the System target file field in the Target configuration category of the Real-Time Workshop pane. The following example turns the option on

See Using Custom Storage Classes in the Real-Time Workshop Embedded Coder documentation for further information.


  General Code Appearance Options TLC Debugging Options