资源简介
matlab实现的串口采样数据的曲线绘制,能够设置串口编号。
代码片段和文件信息
function varargout = SerialPortCommunication(varargin)
% SERIALPORTCOMMUNICATION M-file for SerialPortCommunication.fig
% SERIALPORTCOMMUNICATION by itself creates a new SERIALPORTCOMMUNICATION or raises the existing
% singleton*.
%
% H = SERIALPORTCOMMUNICATION returns the handle to a new SERIALPORTCOMMUNICATION or the handle to
% the existing singleton*.
%
% SERIALPORTCOMMUNICATION(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in SERIALPORTCOMMUNICATION.M with the given input arguments.
%
% SERIALPORTCOMMUNICATION(‘Property‘‘Value‘...) creates a new SERIALPORTCOMMUNICATION or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before SerialPortCommunication_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to SerialPortCommunication_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE‘s Tools menu. Choose “GUI allows only one
% instance to run (singleton)“.
%
% See also: GUIDE GUIDATA GUIHANDLES
% Edit the above text to modify the response to help SerialPortCommunication
% Last Modified by GUIDE v2.5 05-Jun-2009 12:39:52
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @SerialPortCommunication_OpeningFcn ...
‘gui_OutputFcn‘ @SerialPortCommunication_OutputFcn ...
‘gui_LayoutFcn‘ [] ...
‘gui_Callback‘ []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State varargin{:});
else
gui_mainfcn(gui_State varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes when user attempts to close figure1.
function figure1_CloseRequestFcn(hobject eventdata handles)
% hobject handle to figure1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: delete(hobject) closes the figure
global number;
global o_SerialPort;
%--------------关闭串口-------------------------------
if strcmp(o_SerialPort.Status‘open‘)
fclose(o_SerialPort);
end
number=[];
clear number;
delete(hobject);
% --- Executes just before SerialPortCommunication is made visible.
function SerialPortCommunication_OpeningFcn(hobject eventdata handles varargin)
% This function has no output args see OutputFcn.
% hobject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to SerialPortCommunication (see VARARGIN)
% Choose default command line output for SerialPortCommunication
h
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 17433 2009-06-05 12:47 SerialPortCommunication.m
----------- --------- ---------- ----- ----
17433 1
- 上一篇:多目标优化算法中的标准测试函数的结果
- 下一篇:MSER极值区域提取
相关资源
- MSER极值区域提取
- bpsk MATLAB仿真
- GIST matlab 提取GIST特征的matlab源码
- radar process toolbox 雷达信号处理的mat
- wind coefficient
- 三相PWM整流
- mask code mask 匀光处理代码
- pfc rec moni 三相逆变器的仿真模型
- Sound quality calculation 声品质的计算程序
- M2M4method SNR estimation 基于信号二阶四阶
- elman load forecast
- matlab 干涉SAR数据的基本处理
- 多帧融合差分法
- Power electronic simulation handouts 山东大学
- hmm 自己修改的程序代码
- GUI界面设计并附有案例
- PRACHDETECTION
- 多输入多输出系统解耦控制
- sfs code
- 一维信号压缩还原信号
- 获取图片点坐标
- 掌纹识别
- CVRP 一个用蚁群算法做OCVRP的代码。不
- matlab拍照
- matlab读入IGS文件
- matlab的车牌定位提取
- matlab的高帽变换
- 简单的Matlab人脸识别
- 图片三维重建工具箱
- 神经网络与adaboost的强分类器
评论
共有 条评论