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
arduino
object, 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
arduinolist
to check the status of your Arduino board. Ensure that your device appears in the output and is not in use.Check if an
arduino
object 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)
Hardware Setup Screen Gets Truncated
If your hardware setup screen gets truncated, try the following fixes:
Use the web browser in full screen mode.
Check if the resolution of your screen is more than or equal to 1024-by-768. Also reduce the scale of your display to 100%.
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