EPOS2 Support for Simulink Coder in Linux and Raspberry PI

Versione 1.0.0.0 (22,2 KB) da Eugenio
This files enable the use of EPOS2 maxon motor position controller connected to a Linux Machine
142 download
Aggiornato 14 nov 2016

Visualizza la licenza

Unfortunately Windows OS is not good enough for real-time operation, so Simulink provides a way to improve this using Simulink Coder (formerly know as Real Time Workshop). This files enable the use of a EPOS2 motor controller connected to a Linux machine, such as a Raspberry PI, for obtaining a better performance in simulation when compared with Windows OS.
Example of how to use this files

1. Download and install EPOS2 libraries in Raspberry PI. Copy *.so in /usr/lib, and replace *.h in /usr/include. Replace the original "Definitions.h" file with the one included in the zip.
Example of this step in linux:
cd ./EPOS_Linux_Library_Files/lib/arm/rpi
sudo mv libEposCmd.so.5.0.1.0 /usr/lib/libEposCmd.so
sudo mv libftd2xx.so.1.2.8 /usr/lib/libftd2xx.so
Copy the file "Definitions.h" to your SSD in Raspberry PI and use the following command
sudo mv ./Definitions.h /usr/include

2. Extract the files in an empty directory in a windows computer.

3. Open the example model "test_MAXON_linux.slx" and modify it according to your node ID and required EPOS2 mode. There are only three supported modes: position, velocity and current.

4. Go to model options and change the values in pane "Run On Target Hardware", use your IP, user and password.

5. Compile model in external mode and check for output.

Cita come

Eugenio (2024). EPOS2 Support for Simulink Coder in Linux and Raspberry PI (https://www.mathworks.com/matlabcentral/fileexchange/60218-epos2-support-for-simulink-coder-in-linux-and-raspberry-pi), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2013b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Prepare Model Inputs and Outputs in Help Center e MATLAB Answers
Community
Ulteriori file sono disponibili nella  Power Electronics Control Community

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0