Main Content

arduino.supportpkg.getBoardInfo

Get properties of Arduino board in active Simulink model

Since R2020b

Add-On Required: This feature requires the Simulink Support Package for Arduino Hardware add-on.

Description

arduino.supportpkg.getBoardInfo returns a structure array displaying the Arduino board name and architecture details of the target hardware in an active Simulink® model.

example

boardInfo = arduino.supportpkg.getBoardInfo(bdroot) returns a structure array displaying the Arduino board name and architecture details of the target hardware in the bdroot Simulink model.

example

Examples

collapse all

Ensure that you have MATLAB® R2020b or higher installed with Simulink Support Package for Arduino® Hardware.

Open the Simulink model. In the Configuration Parameters dialog box, from the Hardware board drop-down list, select your Arduino board connected to your host computer.

Get the Arduino board properties of an active Simulink model.

arduino.supportpkg.getBoardInfo()
ans = 

  struct with fields:

    BoardName: "Arduino Mega ADK"
    Architecture: "avr"

Ensure that you have MATLAB R2020b or higher installed with Simulink Support Package for Arduino Hardware.

Open the arduino_audio_effects Simulink model.

openExample('arduino_audio_effects')

In the Configuration Parameters dialog box, from the Hardware board drop-down list, select your Arduino board connected to your host computer.

Get the Arduino board properties of the arduino_audio_effects Simulink model.

boardInfo = arduino.supportpkg.getBoardInfo('arduino_audio_effects')
boardInfo = 

  struct with fields:

    BoardName: "Arduino MKR1000"
    Architecture: "samd"

Input Arguments

collapse all

Simulink model name, specified as a string.

Data Types: char | string

Output Arguments

collapse all

Arduino board properties information, returned as a structure with the fields:

BoardNameArduino board used in the Simulink model
ArchitectureArchitecture of the Arduino board used in the Simulink model

Version History

Introduced in R2020b