ExecPythonScript

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

    ExecPythonScript

Library

CustomBlocks

Description

This block runs a Python Script in main interactively through the block GUI. This block does nothing during simulation.
The usage is to allow users to initialize the environment, run optimization code, ...

Parameters

ExecPythonScript_0

NameLabelDescriptionData TypeValid Values

script

Python script

The Python script to be executed using the Execute button

String

Diagram

ExecPythonScript