Configuration object for hardware
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 where the MATLAB function is deployed. This folder contains a symbolic link to the deployed
executable. For example, if you specify
/home/pi, the support package adds a folder structure,
/MATLAB_ws/R2020a, inside your
MATLAB_ws is the workspace directory and
is the release version of MATLAB. This folder contains a symbolic link that points to the actual location
of the deployed executable.
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: '172.18.182.234' Username: 'pi' Password: '*********' BuildDir: '/home/pi' EnableRunOnBoot: 0 BuildAction: 'Build, load, and run' CoderConfig: [1×1 coder.CodeConfig]