MATLAB: Is the MKRMotorCarrier library not showing up even though I have installed the correct support packages

listarduinolibrarieslistedMATLABmkrmotorcarriernotshowing

I am using R2019a and am looking to use my Arduino Engineering Kit with the MKR Motor Carrier library. I have downloaded the Simulink and MATLAB Hardware Support Packages for Arduino, as well as the appropriate Arduino Engineering Kit Hardware Support package for R2019a.
However, when I execute "listArduinoLibraries" from the MATLAB Command Prompt, "Arduino/MKRMotorCarrier" still does not show up.

Best Answer

There are two likely reasons why this may be happening:
1. Support Package downloaded via FEX:
If you have downloaded the support package directly from the File Exchange website, it will not have performed any of the set-up steps or added any of the files to the path. For this reason, it is recommended you download the support package from the Add-Ons manager instead. That being said, if you would like to continue with the files from the File Exchange website please make sure the "Arduino_Engineering_Kit_Rev_1_Hardware_Support_19a+" and the "MKRMotorCarrier" folders are added to the MATLAB Path.
Note: Before adding the MKRMotorCarrier library to the MATLAB Path, please make sure it is placed in the correct directory as instructed in step 4 here:
You can add these folders to the MATLAB Path by right-clicking the folder name within the MATLAB Current Folder Browser, select Add to Path --> Selected Folders and Subfolders
After adding these folders to the MATLAB path, try executing the "listArduinoLibraries" command. Once you confirm that the MKRMotorCarrier library is listed there, please execute the "savepath" command in your MATLAB Command window to save the updated path.
2. Support Package download via Add-On (without MATLAB restart):
If you have downloaded the support package from the Add-Ons manager already, make sure that you have restarted MATLAB before trying to execute "listArduinoLibraries", otherwise the MATLAB path will not reflect the changes made by the support package installer.