⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dplresolutionresult.asv

📁 在MATLAB环境下设计一个加速度计动态校准的数据处理软件附有程序源代码,压缩包中有软件使用说明
💻 ASV
📖 第 1 页 / 共 4 页
字号:
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
        hold on;   
    elseif DPRCover_PopMenuTEA_Value==3
        plot(x,(V_TEA.*1000)./Sens_TEA_V,'c')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
        hold on;   
    end
    if DPRCover_PopMenuTEB_Value==1
        plot(x,V_TEB,'y')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
    elseif DPRCover_PopMenuTEB_Value==2
        plot(x,V_TEB.*Sens_TEB_V,'y')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
    elseif DPRCover_PopMenuTEB_Value==3
        plot(x,(V_TEB.*1000)./Sens_TEB_V,'y')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
    end
end
hold off;
% --- Executes on button press in radiobutton2.
function radiobutton2_Callback(hObject, eventdata, handles)
% hObject    handle to radiobutton2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of radiobutton2
set(hObject,'Value',1);
%重复初始化中的操作
load DPR_DataSupport DPRCover_PopMenuSTD_Value DPRCover_PopMenuTEA_Value DPRCover_PopMenuTEB_Value;
%根据结果选项设置环境文本
load DPR_DataSupport A_TEA_max A_TEB_max A_STD_max...
                     Sens_TEA_A Sens_TEB_A...
                     T_STD_A;
%设置加速度峰值的名称和单位
set(findobj('Tag','text90'),'String','加速度峰值','FontSize',9);
set(findobj('Tag','text67'),'String','g');
set(findobj('Tag','edit1'),'String',num2str(A_STD_max));
if DPRCover_PopMenuTEA_Value~=4
    if DPRCover_PopMenuTEA_Value==1
        set(findobj('Tag','text23'),'String','加速度峰值','FontSize',9);
        set(findobj('Tag','text82'),'String','g');
    elseif DPRCover_PopMenuTEA_Value==2
        set(findobj('Tag','text23'),'String','数值加速度','FontSize',9);
        set(findobj('Tag','text82'),'String',['''','g','''']);
    elseif DPRCover_PopMenuTEA_Value==3
        set(findobj('Tag','text23'),'String','电压峰值');
        set(findobj('Tag','text82'),'String','mV');
    end
    set(findobj('Tag','edit9'),'String',num2str(A_TEA_max));
end
if DPRCover_PopMenuTEB_Value~=4
    if DPRCover_PopMenuTEB_Value==1
        set(findobj('Tag','text26'),'String','加速度峰值','FontSize',9);
        set(findobj('Tag','text85'),'String','g');
    elseif DPRCover_PopMenuTEB_Value==2
        set(findobj('Tag','text26'),'String','数值加速度','FontSize',9);
        set(findobj('Tag','text85'),'String',['''','g','''']);
    elseif DPRCover_PopMenuTEB_Value==3
        set(findobj('Tag','text26'),'String','电压峰值');
        set(findobj('Tag','text85'),'String','mV');
    end
    set(findobj('Tag','edit52'),'String',num2str(A_TEB_max));
end
%设置加速度脉宽
set(findobj('Tag','edit7'),'String',num2str(T_STD_A));
%设置灵敏度的单位和数值
if DPRCover_PopMenuSTD_Value==1 
    if DPRCover_PopMenuTEA_Value~=4
        if DPRCover_PopMenuTEA_Value==1
            set(findobj('Tag','text80'),'String','');
        elseif DPRCover_PopMenuTEA_Value==2
            set(findobj('Tag','text80'),'String','m/s/V');
        elseif DPRCover_PopMenuTEA_Value==3
            set(findobj('Tag','text80'),'String','pC/g');
        end
        set(findobj('Tag','edit50'),'String',num2str(Sens_TEA_A));
    end
    if DPRCover_PopMenuTEB_Value~=4
        if DPRCover_PopMenuTEB_Value==1
            set(findobj('Tag','text84'),'String','');
        elseif DPRCover_PopMenuTEB_Value==2
            set(findobj('Tag','text84'),'String','m/s/V');
        elseif DPRCover_PopMenuTEB_Value==3
            set(findobj('Tag','text84'),'String','pC/g');
        end
        set(findobj('Tag','edit93'),'String',num2str(Sens_TEB_A));
    end
elseif DPRCover_PopMenuSTD_Value==2
    if DPRCover_PopMenuTEA_Value~=4
        if DPRCover_PopMenuTEA_Value==1
            set(findobj('Tag','text80'),'String','');
        elseif DPRCover_PopMenuTEA_Value==2
            set(findobj('Tag','text80'),'String','m/s/V');
        elseif DPRCover_PopMenuTEA_Value==3
            set(findobj('Tag','text80'),'String','pC/g');
        end
        set(findobj('Tag','edit50'),'String',num2str(Sens_TEA_A));
    end
    if DPRCover_PopMenuTEB_Value~=4
        if DPRCover_PopMenuTEB_Value==1
            set(findobj('Tag','text84'),'String','');
        elseif DPRCover_PopMenuTEB_Value==2
            set(findobj('Tag','text84'),'String','m/s/V');
        elseif DPRCover_PopMenuTEB_Value==3
            set(findobj('Tag','text84'),'String','pC/g');
        end
        set(findobj('Tag','edit93'),'String',num2str(Sens_TEB_A));
    end
elseif DPRCover_PopMenuSTD_Value==3
    if DPRCover_PopMenuTEA_Value~=4
        if DPRCover_PopMenuTEA_Value==1
            set(findobj('Tag','text80'),'String','');
        elseif DPRCover_PopMenuTEA_Value==2
            set(findobj('Tag','text80'),'String','m/s/V');
        elseif DPRCover_PopMenuTEA_Value==3
            set(findobj('Tag','text80'),'String','pC/g');
        end
        set(findobj('Tag','edit50'),'String',num2str(Sens_TEA_A));
    end
    if DPRCover_PopMenuTEB_Value~=4
        if DPRCover_PopMenuTEB_Value==1
            set(findobj('Tag','text84'),'String','');
        elseif DPRCover_PopMenuTEB_Value==2
            set(findobj('Tag','text84'),'String','m/s/V');
        elseif DPRCover_PopMenuTEB_Value==3
            set(findobj('Tag','text84'),'String','pC/g');
        end
        set(findobj('Tag','edit93'),'String',num2str(Sens_TEB_A));
    end
end
%绘制加速度波形
load DPR_DataSupport A_STD A_TEA A_TEB;
[size_x,size_y]=size(A_STD);
x=1:size_x;
if DPRCover_PopMenuSTD_Value==1 
    plot(x,A_STD,'r')
    set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
    grid on;zoom off;zoom xon;
    hold on;
    if DPRCover_PopMenuTEA_Value==1
        plot(x,A_TEA,'c')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
        hold on;
    elseif DPRCover_PopMenuTEA_Value==2
        plot(x,A_TEA.*Sens_TEA_A,'c')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
        hold on;
    elseif DPRCover_PopMenuTEA_Value==3
        plot(x,(A_TEA.*(1000*9.80665))./Sens_TEA_A,'c')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
        hold on;
    end
    if DPRCover_PopMenuTEB_Value==1
        plot(x,A_TEB,'y')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
    elseif DPRCover_PopMenuTEB_Value==2
        plot(x,A_TEB.*Sens_TEB_A,'y')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
    elseif DPRCover_PopMenuTEB_Value==3
        plot(x,(A_TEB.*(1000*9.80665))./Sens_TEB_A,'y')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
    end
elseif DPRCover_PopMenuSTD_Value==2
    plot(x,A_STD,'r')
    set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
    grid on;zoom off;zoom xon;
    hold on;
    if DPRCover_PopMenuTEA_Value==1
        plot(x,A_TEA,'c')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
        hold on;
    elseif DPRCover_PopMenuTEA_Value==2
        plot(x,A_TEA.*Sens_TEA_A,'c')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
        hold on;
    elseif DPRCover_PopMenuTEA_Value==3
        plot(x,(A_TEA.*(1000*9.80665))./Sens_TEA_A,'c')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
        hold on;
    end
    if DPRCover_PopMenuTEB_Value==1
        plot(x,A_TEB,'y')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon; 
    elseif DPRCover_PopMenuTEB_Value==2
        plot(x,A_TEB.*Sens_TEB_A,'y')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
    elseif DPRCover_PopMenuTEB_Value==3
        plot(x,(A_TEB.*(1000*9.80665))./Sens_TEB_A,'y')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon; 
    end
elseif DPRCover_PopMenuSTD_Value==3
    plot(x,A_STD.*9.80665,'r')
    set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
    grid on;zoom off;zoom xon;
    hold on;
    if DPRCover_PopMenuTEA_Value==1
        plot(x,A_TEA,'c')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
        hold on;
    elseif DPRCover_PopMenuTEA_Value==2
        plot(x,A_TEA.*Sens_TEA_A,'c')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
        hold on;
    elseif DPRCover_PopMenuTEA_Value==3
        plot(x,(A_TEA.*(1000*9.80665))./Sens_TEA_A,'c')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
        hold on;
    end
    if DPRCover_PopMenuTEB_Value==1
        plot(x,A_TEB,'y')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
    elseif DPRCover_PopMenuTEB_Value==2
        plot(x,A_TEB.*Sens_TEB_A,'y')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
    elseif DPRCover_PopMenuTEB_Value==3
        plot(x,(A_TEB.*(1000*9.80665))./Sens_TEB_A,'y')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
    end
end
hold off;







% --- If Enable == 'on', executes on mouse press in 5 pixel border.
% --- Otherwise, executes on mouse press in 5 pixel border or over radiobutton1.
function radiobutton1_ButtonDownFcn(hObject, eventdata, handles)
% hObject    handle to radiobutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on button press in radiobutton9.
function radiobutton9_Callback(hObject, eventdata, handles)
% hObject    handle to radiobutton9 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of radiobutton9
set(hObject,'Value',1);
%重复初始化中的操作
load DPR_DataSupport DPRCover_PopMenuSTD_Value DPRCover_PopMenuTEA_Value DPRCover_PopMenuTEB_Value;
%根据结果选项设置环境文本
load DPR_DataSupport S_STD S_STD_Peak S_TEA S_TEA_Peak S_TEB S_TEB_Peak;
%设置位移峰值的名称和单位
set(findobj('Tag','text90'),'String','位移峰值','FontSize',9);
set(findobj('Tag','text67'),'String','m');
set(findobj('Tag','edit1'),'String',num2str(S_STD_Peak));
if DPRCover_PopMenuTEA_Value~=4
    set(findobj('Tag','text23'),'String','位移峰值','FontSize',9);
    set(findobj('Tag','text82'),'String','m');
    set(findobj('Tag','edit9'),'String',num2str(S_TEA_Peak));
end
if DPRCover_PopMenuTEB_Value~=4
    set(findobj('Tag','text26'),'String','位移峰值','FontSize',9);
    set(findobj('Tag','text85'),'String','m');
    set(findobj('Tag','edit52'),'String',num2str(S_TEB_Peak));
end
%绘制加速度波形
[size_x,size_y]=size(S_STD);
x=1:size_x;
if DPRCover_PopMenuSTD_Value==1 
    plot(x,S_STD,'r')
    set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
    grid on;zoom off;zoom xon;
    hold on;
    if DPRCover_PopMenuTEA_Value==1
        plot(x,S_TEA,'c')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
        hold on;
    end
    if DPRCover_PopMenuTEB_Value==1
        plot(x,S_TEB,'y')
        set(gca,'Color',[0,0,0],'XColor',[0,1/2,0],'YColor',[0,1/2,0]);
        grid on;zoom off;zoom xon;
    end
end
hold off;


% --- Executes on button press in pushbutton16.
function pushbutton16_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton16 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
run DPLResolutionFilter2;


% --- Executes on button press in pushbutton17.
function pushbutton17_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton17 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
run DPLResolutionFilter3;


% --- Executes on button press in pushbutton18.
function pushbutton18_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton18 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
run DPLResolutionFilter1;


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -