Restart or Shutdown Raspberry PI crashes Matlab
조회 수: 9 (최근 30일)
이전 댓글 표시
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!
댓글 수: 0
채택된 답변
Walter Roberson
2017년 9월 20일
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.
댓글 수: 0
추가 답변 (1개)
Mario Frischmann
2017년 9월 20일
Any solutions?
댓글 수: 1
Alejandro Ojeda
2018년 7월 5일
편집: Alejandro Ojeda
2018년 7월 5일
This is nonblocking
p = raspberrypi;
p.system('sudo shutdown -r +1');
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!