ExecOmlScript

This block executes a user-defined command or script in OpenMatrix Language.

    ExecOmlScript

Library

Activate/CustomBlocks

Description

This block runs an OML script. The script is executed in the base environment interactively through the block GUI, but is not active during the simulation. The execution of the script follows the execution of the Model Initialization script and the corresponding diagram Context scripts following the usual Super Block scoping rules. The block provides a method to provide computed parameters in the environment, for example by running a script to linearize a plant to construct a controller, before running a simulation.

Parameters

ExecOmlScript_0

NameLabelDescriptionData TypeValid Values

script

OML Script

The OML script to be executed using the Execute button

String

Diagram

ExecOmlScript

See Also