This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

targetHardware

Create configuration object for hardware

Syntax

targetObj = targetHardware(hardwareName)

Description

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.

Examples

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