ExecPythonScript

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

    ExecPythonScript

Library

CustomBlocks

Description

This block runs a Python Script that is entered through the GUI, with the script being executed in main. This block plays no role during simulation, but rather provides a method to initialize the environment, run optimization code and more.

Parameters

ExecPythonScript_0

NameLabelDescriptionData TypeValid Values

script

Python script

The Python script to be executed using the Execute button

String

Diagram

ExecPythonScript