Real-Time Workshop Embedded Coder    

Other Code Generation Options

This section describes advanced Real-Time Workshop Embedded Coder code generation options. These options are found in the ERT code generation options (2) and ERT code generation options (3) items of the Category menu of the Real-Time Workshop tab of the Simulation Parameters dialog box. Figure 3-2 and Figure 3-3 display the advanced code generation options for the Real-Time Workshop Embedded Coder.

Figure 3-2: ERT Code Generation Options (2)

Figure 3-3: ERT Code Generation Options (3)

The following sections describe these options, in order of their appearance on the dialog box.

Create Simulink (S-Function) Block

See Generating an S-Function Wrapper for information on this feature.

Generate ASAP2 File

The Real-Time Workshop Embedded Coder Generate ASAP2 File code generation option lets you export an ASAP2 file containing information about your model during the code generation process.

The ASAP2 file generation process requires information about your model's parameters and signals. Some of this information is contained in the model itself. The rest must be supplied by using Simulink data objects with the necessary properties. Simulink provides two data classes to assist you in providing the necessary information. See Generating ASAP2 Files for information on this feature.

Initialize Floats and Doubles to 0.0

This option lets you control how internal storage for floats and doubles is initialized. This option affects code generation only if you have turned on the Initialize internal data option (see Basic Code Generation Options).

When this option is off, all internal storage (regardless of type) is cleared to the integer bit pattern 0 (that is, all bits are off).

When this option is on (the default), additional code is generated to set float and double storage explicitly to the value 0.0. This additional code is slightly less efficient.

If the representation of floating-point zero used by your compiler and target CPU is identical to the integer bit pattern 0, you can gain efficiency by using the default (off).

Ignore Custom Storage Classes

When this option is selected, objects with custom storage classes are treated as if their storage class attribute is set to Auto. By default this option is off for the Real-Time Workshop Embedded Coder. See Introduction to Custom Storage Classes for further information.


  Automatic S-Function Wrapper Generation External Mode