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