... | ... | @@ -12,6 +12,26 @@ Here is a short list of the current RTIS Dev methods that aren't available throu |
|
|
|
|
|
## Usage
|
|
|
|
|
|
### Configure Python for MATLAB
|
|
|
First you need to correctly link your installed Python installation to MATLAB, as by default this isn't always the latest version of Python 3 you installed. You can verify which Python is linked by running:
|
|
|
```matlab
|
|
|
pe = pyenv;
|
|
|
pe.Version
|
|
|
```
|
|
|
If this is not a version that you which to use and does not match the [dependencies](#dependencies) you can alter this manually.
|
|
|
Do note that you need to do this everytime before using the RTIS Dev Remote MATLAB wrapper! Once Python is loaded in matlab, you need to restart MATLAB first before changing it. Therefore, running the commands above will likely mean requiring a restart of MATLAB.
|
|
|
|
|
|
For Windows you can run:
|
|
|
```matlab
|
|
|
pyenv('Version','your.version') % With 'your.version' indicating the 'major.minor' version number of you Python release, for example '3.6'.
|
|
|
```
|
|
|
On linux you need to refer to the path of your Python 3 installation:
|
|
|
```matlab
|
|
|
pyenv('Version',"/usr/bin/python3") % You can also link to specific Python versions by altering the path.
|
|
|
```
|
|
|
|
|
|
Some more information can be found [here](https://nl.mathworks.com/help/matlab/matlab_external/install-supported-python-implementation.html#buialof-40).
|
|
|
|
|
|
### Initial setup
|
|
|
When starting with this wrapper, first try to make a connection the remote RTIS Device.
|
|
|
This both tests the connection as makes sure that the RTIS Dev version used on the remote device is supported by the version of this wrapper.
|
... | ... | |