Main Content


Get name of MATLAB function added to Run-on-boot

Since R2019b


getRunOnBoot(raspPiObj) returns the name of the MATLAB® function added to Run-on-boot.


collapse all

To get the name of the function available in Run-on-boot:

  1. Create a connection to the Raspberry Pi® hardware.

    raspPiObj = raspberrypi('','pi','raspberrypi')
    rasPiObj = 
      raspberrypi with properties:
        DeviceAddress: ''
                 Port: 22

    For more information on creating a connection to Raspberry Pi hardware, see raspberrypi (Simulink Support Package for Raspberry Pi Hardware).

  2. Use the getRunOnBoot function. This returns the name of the function available in Run-on-boot. If no function is available in Run-on-boot, it returns an empty cell.

    ans = 
         1×1 cell array 

Input Arguments

collapse all

The object that represents the connection to the Raspberry Pi hardware.

Example: raspPiObj

Version History

Introduced in R2019b