Create Hardware Configuration Object

  1. Create a hardware configuration object by using the targetHardware function in the MATLAB® Command Window.

    targetObject = targetHardware('hardwareName')

    For example, to create a configuration object for the Raspberry Pi™ hardware, enter:

    board = targetHardware('Raspberry Pi')
    board = 
    targetHardware with properties:
                 Name: 'Raspberry Pi'
        DeviceAddress: ''
             Username: 'pi'
             Password: '*********'
             BuildDir: '/home/pi'
          BuildAction: 'Build, load, and run'
  2. Verify the DeviceAddress, Username, and Password properties listed in the output. If necessary, change the value of the properties by using dot notation syntax.

    targetObj.propertyName = newValue

    For example, to change the device address to, enter:

    board.DeviceAddress = ''