This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Shut Down Raspberry Pi Hardware

Your Raspberry Pi™ hardware is a mini-Linux® computer. Disconnecting the power cable without properly shutting down can corrupt the SD card and cause Linux boot failures. To avoid this problem, shut down your Raspberry Pi hardware using Linux commands. Using the MATLAB® Command Window, enter:

h = raspberrypi
h.execute('sudo shutdown -h now')

When the Raspberry Pi shuts down, all LEDs except for the PWR LED turn off. Power recycle your Raspberry Pi hardware when you want to boot into Linux kernel again.

To reboot your Raspberry Pi hardware, execute the following command:

h.execute('sudo shutdown -r now')