matlab定时器连续读写串口及回调函数应用我要分享

Application of MATLAB timer continuous read-write

关注次数: 274

下载次数: 2

文件大小: 2.06 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:本程序用MATLAB读写串口。具体功能为读一个传感器。首先发送读指令,然后等待传感器反应。用MATLAB定时器定时,每秒读写1次。程序中使用了回调函数,包括串口接收回调函数和定时器回调函数。


English Description:

This program uses MATLAB to read and write serial port. The specific function is to read a sensor. First send read command, then wait for sensor response. Timer with MATLAB, read and write once per second. Callback functions are used in the program, including serial port receiving callback function and timer callback function.


代码预览

相关推荐