Troubleshoot Arduino in MATLAB Online
Failed to connect to Arduino Hardware
If you fail to connect to the Arduino® hardware board when executing commands in MATLAB® Online™, try the following fixes:
Check if the connection to MATLAB Connector™ exists. If connection does not exist, reconnect with MATLAB Connector, clear the existing
arduinoobject, and then create a new object. For more information, see Troubleshooting MATLAB Connector Issues in Windows, Troubleshooting MATLAB Connector Issues in Mac, and Troubleshooting MATLAB Connector Issues in Linux.Use
arduinolistto check the status of your Arduino board. Ensure that your device appears in the output and is not in use.Check if an
arduinoobject exists in any version of MATLAB desktop.
Arduino Is Not Listed in arduinolist Output
If your board does not appear in the output of arduinolist, you can specify a larger timeout value. Use a
name-value argument with arduinolist to specify the maximum
amount of time (in seconds) to scan for Arduino hardware boards in MATLAB
Online. For example, scan for boards associated with your credentials for up
to 20
seconds.
list = arduinolist("Timeout",20)Port Access Authorization Required
If arduinolist returns an error message that indicates that
port access authorization is required, obtain the necessary permissions to access
the COM port.
See Also
Get Started with MATLAB Online for Arduino | Security Considerations When Using MATLAB Online with Arduino