




如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
(word完整版)MATLAB串口通信设计源码 (word完整版)MATLAB串口通信设计源码 (word完整版)MATLAB串口通信设计源码 functionvarargout=PJSerialCOM(varargin) %PJSERIALCOMM-fileforPJSerialCOM。fig %PJSERIALCOM,byitself,createsanewPJSERIALCOMorraisestheexisting %singleton*. % %H=PJSERIALCOMreturnsthehandletoanewPJSERIALCOMorthehandleto %theexistingsingleton*. % %PJSERIALCOM(’CALLBACK',hObject,eventData,handles,。。。)callsthelocal %functionnamedCALLBACKinPJSERIALCOM.Mwiththegiveninputarguments。 % %PJSERIALCOM(’Property','Value',。.。)createsanewPJSERIALCOMorraisesthe %existingsingleton*。Startingfromtheleft,propertyvaluepairsare %appliedtotheGUIbeforePJSerialCOM_OpeningFcngetscalled。An %unrecognizedpropertynameorinvalidvaluemakespropertyapplication %stop。AllinputsarepassedtoPJSerialCOM_OpeningFcnviavarargin。 % %*SeeGUIOptionsonGUIDE’sToolsmenu。Choose”GUIallowsonlyone %instancetorun(singleton)”。 % %Seealso:GUIDE,GUIDATA,GUIHANDLES %EdittheabovetexttomodifytheresponsetohelpPJSerialCOM %LastModifiedbyGUIDEv2。526-May-201218:45:14 %Begininitializationcode—DONOTEDIT gui_Singleton=1; gui_State=struct(’gui_Name’,mfilename,.。。 ’gui_Singleton',gui_Singleton,... ’gui_OpeningFcn’,@PJSerialCOM_OpeningFcn,。。. ’gui_OutputFcn',@PJSerialCOM_OutputFcn,。。。 ’gui_LayoutFcn’,[],。。。 'gui_Callback',[]); ifnargin&&ischar(varargin{1}) gui_State.gui_Callback=str2func(varargin{1}); end ifnargout [varargout{1:nargout}]=gui_mainfcn(gui_State,varargin{:}); else gui_mainfcn(gui_State,varargin{:}); end %Endinitializationcode—DONOTEDIT %———ExecutesjustbeforePJSerialCOMismadevisible. functionPJSerialCOM_OpeningFcn(hObject,eventdata,handles,varargin) %Thisfunctionhasnooutputargs,seeOutputFcn。 %hObjecthandletofigure %eventdatareserved-tobedefinedinafutureversionofMATLAB %handlesstructurewithhandlesanduserdata(seeGUIDATA) %varargincommandlineargumentstoPJSerialCOM(seeVARARGIN) %ChoosedefaultcommandlineoutputforPJSerialCOM handles.output=hObject; %Updatehandlesstructure guidata(hObject,handles); %UIWAITmakesPJSerialCOMwaitforuserresponse(seeUIRESUME

17****21
实名认证
内容提供者


最近下载