串行设备
R2026b读取和写入连接到 Arduino® 硬件的串行设备
在使用串行流函数之前,请使用 arduino 创建一个 Arduino 对象。
您可以使用 Arduino 资源管理器以交互方式配置串行通信接口,并使用该接口在 MATLAB® 和 MATLAB Online™ 中对连接到 Arduino 和其他受支持硬件的串行设备读取和写入数据。有关详细信息,请参阅 Connect to Serial Device Using Arduino Explorer App。
有关安装版 MATLAB 中支持的硬件的完整列表,请参阅Supported Hardware。有关 MATLAB Online 支持的板、工作流和平台的详细信息,请参阅Get Started with MATLAB Online for Arduino。
函数
主题
- Use Arduino Explorer App
Learn how to use the Arduino Explorer app to configure GPIO pins and communication protocol interfaces and visualize data.
- Connect to Serial Device Using Arduino Explorer App
The Arduino Explorer app lets you configure the serial communication interface and read and write data to serial devices connected to Arduino hardware.
疑难解答
Tips to fix issues for serial devices.