Create configuration object for hardware


targetObj = targetHardware(hardwareName) creates a configuration object for the hardware. You can deploy your MATLAB® function as a standalone executable on the hardware by using this object with the deploy method.


collapse all

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'

Input Arguments

collapse all

Name of the hardware on which the MATLAB function is to be deployed.

Example: 'Raspberry Pi'

Data Types: char

Output Arguments

collapse all

The configuration object of the specified hardware, returned as a targetHardware object.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced in R2018b