Configuration object for hardware
targetObj = targetHardware(hardwareName)
hardwareName— Name of hardware
Name of the hardware on which the MATLAB function is to be deployed.
Name— Hardware name
This property is read-only.
The name of the hardware on which the MATLAB function is to be deployed.
DeviceAddress— IP address or host name
The IP address or host name of the Ethernet port on the hardware.
UserName— Hardware user name
The user name for the Linux® operating system on the hardware.
Password— Hardware password
The password for the Linux operating system on the hardware.
The default user is
pi, and the password is
raspberry. This user has sudo root powers at the command line.
Changing this default password to a stronger password is a good security
BuildDir— Hardware build folder
The folder on the hardware in which the MATLAB function is to be deployed.
BuildAction— Build action to perform
Build, load, and run(default) |
Defines how MATLAB responds when you press
Ctrl+B to build your model.
Build: MATLAB compiles and links the MATLAB function into an executable with libraries. This option does not
load and run the executable on the hardware board.
Build, load, and run: MATLAB compiles and links the MATLAB function into an executable with libraries, loads the executable and
libraries, and runs the executable on the hardware.
Build, load, and run
|Deploy MATLAB function on hardware|
Create a configuration object of the Raspberry Pi™ hardware.
targetObj = targetHardware('Raspberry Pi')
targetObj = targetHardware with properties: Name: 'Raspberry Pi' DeviceAddress: 'blrtestpi' Username: 'pi' Password: '*********' BuildDir: '/home/pi' BuildAction: 'Build, load, and run'