MATLAB Answers

Raspberry pi 3 results in matlab frequently crashing

3 views (last 30 days)
Robbin van Hoek
Robbin van Hoek on 30 Sep 2016
Matlab frequently crashes when i try interacting with the raspberry pi 3. Primarily I'm running simple simulink models in external mode.
Sometimes I get error stating that another model that does not correspond with the model that is already running on the pi. However, it does not specify which model is already running (actually i only have 1, so i dont know how a different one can already be running) and i can also not stop this other model.
Then I reboot the Raspberry Pi to clear the running model, after which i test the connection via
mypi = raspi
Often a successful connection is not re-established after rebooting the pi, but more troubeling this command frequently results in matlab crashing, After identifying that a MEX function was the issue, I consulted: http://www.mathworks.com/matlabcentral/answers/212716 which helps my identify the issue to the following MEX functions
[ 2] 0x00000000e29813cb C:\MATLAB\SupportPackages\R2016a\toolbox\target\supportpackages\shared_linuxservices\+matlabshared\+internal\private\ssh2client_mex.mexw64+00005067
[ 3] 0x00000000e2982d2b C:\MATLAB\SupportPackages\R2016a\toolbox\target\supportpackages\shared_linuxservices\+matlabshared\+internal\private\ssh2client_mex.mexw64+00011563 mexFunction+00000427
My approach so far has been to start from scratch everytime this occurs, by rewriting the SD card via
targetupdater
My Question is now the following
  • How can I re-establish a connection with the raspberry pi, after rebooting the pi, without having to re-use the targetupdater function.
  • How can I stop any running models on the raspberry pi, such that i can succesfully build my simulink model to it.
  • What is causing the crashes of matlab while working with the raspberry pi? The issue seems with the matlab native MEX functions, that are responsible for the SSH connection.

Answers (0)

Community Treasure Hunt

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

Start Hunting!