Main Content

getRunOnBoot

Get name of Simulink model added to Run-on-boot

Description

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

Note

MATLAB® Online™ does not support the getRunOnBoot function currently.

example

Examples

collapse all

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

Create a connection to the Raspberry Pi® hardware.

raspPiObj = raspberrypi('192.168.1.5','pi','raspberrypi')
rasPiObj = 

  raspberrypi with properties:

    DeviceAddress: '192.168.1.5'
             Port: 22

For more information on creating a connection to Raspberry Pi hardware, see .

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

getRunOnBoot(raspPiObj)
ans = 

     1×1 cell array 
     {'raspberrypi_gettingstarted'} 

Input Arguments

collapse all

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

Example: raspPiObj

Version History

Introduced in R2015b