Main Content

arduino.supportpkg.getSAMLibraryRoot

Get Arduino SAM library root directory path

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

Description

example

samLibraryRoot = arduino.supportpkg.getSAMLibraryRoot returns a character vector containing the absolute path to the root folder of the installed Arduino® SAM libraries.

Examples

collapse all

Ensure that you have MATLAB® R2020b or higher installed with Simulink® Support Package for Arduino Hardware. Get the root folder of the installed Arduino SAM libraries.

arduino.supportpkg.getSAMLibraryRoot
ans =

'C:\ProgramData\MATLAB\SupportPackages\R2020b\3P.instrset\arduinoide.instrset\portable\packages\arduino\hardware\sam\1.6.12\libraries'

Output Arguments

collapse all

Root folder of the installed Arduino SAM libraries, returned as a character vector. By default, the root folder is C:\ProgramData\MATLAB\SupportPackages\R2020b\3P.instrset\arduinoide.instrset\portable\packages\arduino\hardware\sam\1.6.12\libraries