Initialization Script
An initialization script provides a means for you to define OML variables and functions for a simulation.
On top of the main diagram context, the software applies an initialization script, which is yet another OML script that is executed at the beginning of the simulation process. The main purpose of this script is to define the variables or functions that are required throughout the model during a simulation.
Define Initialization Variables and Functions
Create a script with the OML variables and functions, such as the simulation final time, that you want to be available for a simulation .