91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

采用matlabGUI編寫的UI,用串口接受單片機或者其他串口發送的監測波形,在UI中顯示實時傳送的波形。可以自行修改程序實現其他串口顯示功能。

資源截圖

代碼片段和文件信息

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?04-Jun-2009?20:48:13

%?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
handles.o_SerialPort=serial(‘COM1‘);
%--------------關閉串口-------------------------------
H_o_SerialPort=handles.o_SerialPort;
if?strcmp(H_o_SerialPort.Status‘open‘)
????????fclose(H_o_SerialPort);
end
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?SerialPo

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????8326??2009-06-04?20:48??SerialPortCommunication.fig

?????文件??????14491??2009-06-04?21:30??SerialPortCommunication.m

?????文件??????16316??2009-06-05?12:36??SerialPortCommunication\SerialPortCommunication.asv

?????文件???????8147??2009-06-05?13:53??SerialPortCommunication\SerialPortCommunication.fig

?????文件??????17433??2009-06-05?12:47??SerialPortCommunication\SerialPortCommunication.m

?????目錄??????????0??2009-06-05?12:21??SerialPortCommunication

-----------?---------??----------?-----??----

????????????????64713????????????????????6


評論

共有 條評論