增压机组常见振动故障诊断方法研究

 2022-01-30 20:17:37

论文总字数:9429字

clc;

clear all;

h_fig=figure('name','基于人工神经网络的压缩机振动故障诊断系统','numbertitle','off');

set(gcf,'unit','normalized','Position',[0,0.05,1,1]);

set(gcf,'menubar','none');

menu1=uimenu(gcf,'label','菜单');

menu11=uimenu(menu1,'label','退出','callback','close');

menu2=uimenu(gcf,'label','color');

menu21=uimenu(menu2,'label','green','callback','set(h_fig,''color'',''green''),');

menu22=uimenu(menu2,'label','red','callback','set(h_fig,''color'',''red''),');

menu23=uimenu(menu2,'label','yellow','callback','set(h_fig,''color'',''yellow''),');

menu24=uimenu(menu2,'label','white','callback','set(h_fig,''color'',''white''),');

menu25=uimenu(menu2,'label','black','callback','set(h_fig,''color'',''black''),');

text1=uicontrol(h_fig,'style','text','unit','normalized','position',[0.0,0.95,1.0,0.05],'string',['基于BP神经网络的增缩机振动故障诊断系统'],'fontsize',18,'fontname','隶书');

text2=uicontrol(h_fig,'style','text','unit','normalized','position',[0.01,0.30,0.45,0.20],'string',...

['使用说明:在“请输入特征向量”后面的三个方框中输入相应的测试样本,然后“开始诊断”按钮即可得到诊断结果!'],...

'fontsize',13,'fontname','隶书' );

text3=uicontrol(h_fig,'style','text','unit','normalized','position',[0.01,0.80,0.20,0.10],'string',['请输入振动频谱特征向量'],'fontsize',11,'fontname','方正体');

%频谱特征向量显示文本框

text31=uicontrol(h_fig,'style','text','unit','normalized','position',[0.18,0.85,0.07,0.08],'string',[' 0-0.39f'],'fontsize',10,'fontname','方正体');

text32=uicontrol(h_fig,'style','text','unit','normalized','position',[0.26,0.85,0.07,0.08],'string',['0.4-0.49f'],'fontsize',10,'fontname','方正体');

text33=uicontrol(h_fig,'style','text','unit','normalized','position',[0.34,0.85,0.07,0.08],'string',['0.5-0.99f'],'fontsize',10,'fontname','方正体');

text34=uicontrol(h_fig,'style','text','unit','normalized','position',[0.42,0.85,0.07,0.08],'string',['f'],'fontsize',10,'fontname','方正体');

text35=uicontrol(h_fig,'style','text','unit','normalized','position',[0.50,0.85,0.07,0.08],'string',['2f'],'fontsize',10,'fontname','方正体');

text36=uicontrol(h_fig,'style','text','unit','normalized','position',[0.58,0.85,0.07,0.08],'string',['gt;2f'],'fontsize',10,'fontname','方正体');

text37=uicontrol(h_fig,'style','text','unit','normalized','position',[0.66,0.85,0.07,0.08],'string',['水平'],'fontsize',10,'fontname','方正体');

text38=uicontrol(h_fig,'style','text','unit','normalized','position',[0.74,0.85,0.07,0.08],'string',['垂直'],'fontsize',10,'fontname','方正体');

text39=uicontrol(h_fig,'style','text','unit','normalized','position',[0.82,0.85,0.07,0.08],'string',['轴向'],'fontsize',10,'fontname','方正体');

text40=uicontrol(h_fig,'style','text','unit','normalized','position',[0.90,0.85,0.07,0.08],'string',['轴向'],'fontsize',10,'fontname','方正体');

%振动故障频谱特征向量输入文本框

edit11=uicontrol(h_fig,'style','edit','unit','normalized','position',[0.18,0.79,0.08,0.05]);

edit12=uicontrol(h_fig,'style','edit','unit','normalized','position',[0.26,0.79,0.08,0.05]);

edit13=uicontrol(h_fig,'style','edit','unit','normalized','position',[0.34,0.79,0.08,0.05]);

edit14=uicontrol(h_fig,'style','edit','unit','normalized','position',[0.42,0.79,0.08,0.05]);

edit15=uicontrol(h_fig,'style','edit','unit','normalized','position',[0.50,0.79,0.08,0.05]);

edit16=uicontrol(h_fig,'style','edit','unit','normalized','position',[0.58,0.79,0.08,0.05]);

edit17=uicontrol(h_fig,'style','edit','unit','normalized','position',[0.66,0.79,0.08,0.05]);

edit18=uicontrol(h_fig,'style','edit','unit','normalized','position',[0.74,0.79,0.08,0.05]);

edit19=uicontrol(h_fig,'style','edit','unit','normalized','position',[0.82,0.79,0.08,0.05]);

edit20=uicontrol(h_fig,'style','edit','unit','normalized','position',[0.90,0.79,0.08,0.05]);

%诊断结果输出文本框

text4=uicontrol(h_fig,'style','text','unit','normalized','position',[0.01,0.6,0.20,0.08],'string',['诊断结果:'],'fontsize',16,'fontname','方正体');

%建立图形窗口

axes('Position',[0.5,0.05,0.45,0.45]);

%push2=uicontrol(gcf,'style','push','Unit','normalized','Posi',[0.85,0.35,0.15,0.15],'string','绘图','call','COMM(hedit)');%建立执行输入命令操作的绘图按钮

edit21=uicontrol(h_fig,'style','edit','unit','normalized','position',[0.22,0.64,0.08,0.05]);

edit22=uicontrol(h_fig,'style','edit','unit','normalized','position',[0.30,0.64,0.08,0.05]);

edit23=uicontrol(h_fig,'style','edit','unit','normalized','position',[0.38,0.64,0.08,0.05]);

edit24=uicontrol(h_fig,'style','edit','unit','normalized','position',[0.46,0.64,0.08,0.05]);

edit25=uicontrol(h_fig,'style','edit','unit','normalized','position',[0.54,0.64,0.08,0.05]);

edit26=uicontrol(h_fig,'style','edit','unit','normalized','position',[0.62,0.64,0.08,0.05]);

%诊断结果只是框

text40=uicontrol(h_fig,'style','text','unit','normalized','position',[0.22,0.55,0.07,0.08],'string',['转子原始质量不平衡'],'fontsize',10,'fontname','方正体');

text41=uicontrol(h_fig,'style','text','unit','normalized','position',[0.30,0.55,0.07,0.08],'string',['转子不对中'],'fontsize',10,'fontname','方正体');

text42=uicontrol(h_fig,'style','text','unit','normalized','position',[0.38,0.55,0.07,0.08],'string',['齿轮啮合故障'],'fontsize',10,'fontname','方正体');

text43=uicontrol(h_fig,'style','text','unit','normalized','position',[0.46,0.55,0.07,0.08],'string',['半速涡动'],'fontsize',10,'fontname','方正体');

text44=uicontrol(h_fig,'style','text','unit','normalized','position',[0.54,0.55,0.07,0.08],'string',['油膜振荡'],'fontsize',10,'fontname','方正体');

text45=uicontrol(h_fig,'style','text','unit','normalized','position',[0.62,0.55,0.07,0.08],'string',['喘振'],'fontsize',10,'fontname','方正体');

%诊断时间输出

text5=uicontrol(h_fig,'style','text','unit','normalized','position',[0.01,0.01,0.20,0.08],'string',['诊断时间:'],'fontsize',16,'fontname','隶书');

str=datestr(now,26);

time=uicontrol(h_fig,'style','text','unit','normalized','position',[0.25,0.01,0.20,0.08],'string',str,'fontsize',15);

% %======原始数据输入========

% p=[ 0,0,0,0.1,0,0;

% 0,0,0,0.8,1,0.3;

% 0,0,0,0.1,0,0.1;

% 0.9,0.4,0,0,0,0.6;

% 0.05,0.5,0,0,0,0;

% 0.05,0.1,1,0,0,0;

% 0.4,0.2,0.3,0.4,0.4,0.4;

% 0.5,0.3,0.5,0.5,0.5,0.5;

% 0.1,0.5,0.2,0.1,0.1,0.1;

% 0.2,0.2,0.2,0.2,0.2,0.8];

剩余内容已隐藏,请支付后下载全文,论文总字数:9429字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;