The MATLAB Engine API provides a package for Python to call MATLAB as a computational engine. An overview of this feature can be found at the following link:
To use the MATLAB Engine API for Speedgoat target computer & real-time simulation interaction, a full installation of MATLAB and Simulink Real-Time (including licenses) is required. With that, you will have full access to MATLAB's Simulink Real-Time features from Python.
For details on how to interact with a Speedgoat target machine and real-time simulation from Python, refer to the following example:
Note that the example above was designed to work with release R2020b or later. If you are working with R2020a or older, you will need to modify the code with the functions that are supported with your current release. For instance, you can access the release-specific documentation for the SimulinkRealTime.target object by executing the following command in the MATLAB Command Window:
>> web(fullfile(docroot, 'xpc/api/simulinkrealtime.target.html'))
The recommended method for interacting with a Speedgoat target machine is through a GUI created with MATLAB's App Designer as shown in the following link:
The App Designer workflow also supports the standalone operation of the GUI (without any MATLAB installation or license).
For a complete overview of available interfaces that don't require the full Simulink Real-Time license suite, refer to the MATLAB Answer posts below:
Please use the below link to search for the required information in the current release: