Main Content

Code Interface Configuration and Integration

Facilitate external code integration

The code that you generate from a model contains functions and variables that corresponds to the systems, signals, and block parameters in the model diagram. Control the appearance of these functions and variables by controlling variable characteristics such as:

  • Inlining the variables in the generated code.

  • Marking a variable definition to be local to a function block, global variable, or undefined variable.

Simplify software distribution and reduce the time and resources required to develop control algorithms by designing models from which you can generate reusable code.

You can integrate external code into the generated structured text code by using code configuration parameters to omit the definitions of certain identifiers from the generated code and using your own definitions.

Topics

Interface Configuration

External Code Integration

Featured Examples