ExecOmlScript

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

    ExecOmlScript

Library

CustomBlocks

Description

This block runs an OML Script in the Worker thread. The Script is executed in the base environment interactively through the block GUI. This block does nothing during simulation.
The usage is to allow users to initialize the environment, for example by running a script to linearize a plant and construct a controller before running a simulation to validate the controller.

Parameters

ExecOmlScript_0

NameLabelDescriptionData TypeValid Values

script

OML Script

The OML script to be executed using the Execute button

String

Diagram

ExecOmlScript