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: ''
           Username: 'pi'
           Password: '*********'
           BuildDir: '/home/pi'
    EnableRunOnBoot: 0
        BuildAction: 'Build, load, and run'
        CoderConfig: [1×1 coder.CodeConfig]

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