MATLAB串口操作教程
MATLAB-Serial Port Devices
MATLAB®
串口相关功能教程
Serial Port Devices MATLAB R2012b
大家好
本文档是对 MathWorks 串口教程的翻译, 目的在于帮助大家学习 Matlab 串口设备。
教程包含以下 14 个部分,部分链接会直接指向 MathWorks 来源网页,请尽量适应英文。
水平有限,如有错误粗陋,请不吝指正。谢谢!
教程来源:/help/matlab/serial-port-devices.html
DSP Lab of Northeastern University
Dec, 2012 Boston, USA
如何使用
• 如果您是从零基础开始,既不了解 MATLAB 也从来没有用过串口通信,请在阅读本文档
之前,先学习 MATLAB 基础知识和串口通信基础知识。
• 如果您已经具备串口和 MATLAB 的使用经验,想通过学习本文档来实现 MATLAB 对串口
数据收发控制功能,请从“Getting Started with Serial I/O 开始串口工作”开始阅读。
• 如果您已经具备 MATLAB 串口基本开发能力,建议从“Events and Callbacks 事件和回
调用”开始阅读。
• 您可以点击“on this page…本节包含的内容”框内的链接访问对应的英文原文。
1
Serial Port Devices MATLAB R2012b
目录:教程和实例
Examples and How To
Introduction 介绍
Overview of the Serial Port 串口总览
Getting Started with Serial I/O 开始串口工作
Creating a Serial Port Object 建立一个串口对象
Connecting to the Device 连接设备
Configuring Communication Settings 配置通讯参数
Writing and Reading Data 读写数据
Events and Callbacks 事件和回调用
Using Control Pins 使用控制针脚
Debugging: Recording Information to Disk 调试:将信息记录在磁盘上
Saving and Loading 保存和装载
Disconnecting and Cleaning Up 断开和清空
Property Reference 属性参考
Properties — Alphabetical List 属性 – 按字母表排序
2
Serial Port Devices MATLAB R2012b
介绍
Introduction
On this page… 本节包含内容:
What Is the MATLAB Serial Port Interface? 什么是 MATLAB 串口接口
Supported Serial Port Interface Standards 支持的串口标准