Configuring Executable Generation

You can create an executable configuration based on a code configuration. Then you can validate and run the executable configuration.


Before you begin:
Tip: You can use the Flashlight sample model to try out the executable generation functionality. In the following procedure, the flashlight element is generated.
  1. From the Executable Generation section in the diagram palette, drop a default configuration to the diagram viewer.

    The Executable Generation section displays a selection of default configurations:

    Executable Generation Description
    Custom Target Producer See Target Specification.
    FMU Production See FMU Middleware Generator.
    Linux Application Generates applications for Linux. See Target Specification.
    Windows Application Generates applications for Windows. See Target Specification.

  2. Add a title to the configuration.
  3. From the Containment tree or from the diagram viewer, drop a code generation configuration to the title of the configuration.

    The element is added to the codeGenerationConfigurations attribute.

  4. From the Containment tree, add a top-level element to the executable configuration.
  5. If required, double-click the configuration to modify its specifications. See Defining Specification Properties.
    SpecificationDescription
    Validate By default, set to true.
    Generate Code By default, set to true.
    Store Execution Summary in Model

    By default set to false.

    If set to true, an execution object will be created in your project (under the configuration element), so that you can view the execution summary of your configuration in the Code Generation Result Table.
    Top Level Element Only for FMU Production configuration.
    Code Generation Configurations The generated files are used to produce the application.
    Local Path A path to your workspace for storing the result files.
    Generate Code By default set to true.
    • If set to true, the associated code generation configurations are launched and their results are taken as inputs of the final operation.
    • If set to false, the inputs of the final operation are the current files stored under the folders referenced by the configurations.
    SCM Configuration -
    Other parameters specific to the selected operation For example: includeSource, platform, linkerFlags...

    Tip: For creating a custom target, you can take examples from the Windows and Linux target abstraction layers (tal) files, delivered with the samples in the installation folder. Example of Linux tal files:

What's Next
You can then validate the configuration and execute the operation.

See Validating the Model and Running the Operation.