initialization script

A script associated with each model. Like a diagram context, an initialization script can be used to define OML variables that can be used in the definition of block parameters. The initialization script acts as a top context above the context of the main diagram.

The initialization script is not attached to any diagram and variables defined in the script can be used to define model simulation properties. The initialization script can also be used to define functions used in diagram contexts and block parameter expressions.