ExecPythonScript
This block executes a user-defined command or script in Python.
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
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
script | Python script | The Python script to be executed using the Execute button | String |