Main Content

arduino.supportpkg.getBoardInfo

Get properties of Arduino board in active Simulink model

Description

example

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.

Examples

collapse all

Ensure that you have MATLAB® R2020b or higher installed with Simulink Support Package for Arduino® Hardware. 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. 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

Introduced in R2020b