Azzera filtri
Azzera filtri

Restart or Shutdown Raspberry PI crashes Matlab

3 visualizzazioni (ultimi 30 giorni)
Hi guys,
To restart:
system(raspberrypi,'sudo shutdown -r now')
%or
system(raspi,'sudo shutdown -r now')
It works! Raspberry Pi restarts but Matlab continues busy even after Raspberry Pi has restarted.
Also, I didn't find any documentation about raspberrypi vs raspi, what is the difference between one and other?
Best!

Risposta accettata

Walter Roberson
Walter Roberson il 20 Set 2017
I am not surprised. I would tend to expect that communication with the raspberry follows a protocol, and that MATLAB will continue to believe the connection is busy until it gets the "all done" response, which it is not going to ever get because you rebooted the device.
The raspi object is designed mostly for use from MATLAB; the raspberrypi function is designed mostly for use with Simulink.

Più risposte (1)

Mario Frischmann
Mario Frischmann il 20 Set 2017
Any solutions?
  1 Commento
Alejandro Ojeda
Alejandro Ojeda il 5 Lug 2018
Modificato: Alejandro Ojeda il 5 Lug 2018
This is nonblocking
p = raspberrypi;
p.system('sudo shutdown -r +1');

Accedi per commentare.

Categorie

Scopri di più su MATLAB Support Package for Raspberry Pi Hardware in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by