Code covered by the BSD License  

Highlights from
Toolbox to analyze nanoindentation data.

image thumbnail

Toolbox to analyze nanoindentation data.

by

 

06 Sep 2013 (Updated )

A MATLAB GUI to plot and to analyze (nano)indentation data (obtained with conical indenters)

A_refresh_param_GUI
%% Copyright 2014 MERCIER David
function A_refresh_param_GUI
%% Function used to refresh the GUI in function of the number of thin films
gui = guidata(gcf);

if get(gui.handles.value_numthinfilm_GUI, 'Value') == 1
    set(gui.handles.bg_film2_properties_GUI,   'Visible', 'off');
    set(gui.handles.bg_film1_properties_GUI,   'Visible', 'off');
    set(gui.handles.bg_film0_properties_GUI,   'Visible', 'off');
    set(gui.handles.title_bilayermodel_GUI,    'Visible', 'off');
    set(gui.handles.value_bilayermodel_GUI,    'Visible', 'off');
    set(gui.handles.title_multilayermodel_GUI, 'Visible', 'off');
    set(gui.handles.value_multilayermodel_GUI, 'Visible', 'off');
    set(gui.handles.cb_corr_thickness_GUI,     'Visible', 'off');
    set(gui.handles.cb_corr_thickness_GUI,     'Value',0);
    
elseif get(gui.handles.value_numthinfilm_GUI, 'Value') == 2
    set(gui.handles.bg_film0_properties_GUI,   'Visible', 'on');
    set(gui.handles.bg_film1_properties_GUI,   'Visible', 'off');
    set(gui.handles.bg_film2_properties_GUI,   'Visible', 'off');
    set(gui.handles.title_multilayermodel_GUI, 'Visible', 'off');
    set(gui.handles.value_multilayermodel_GUI, 'Visible', 'off');
    
elseif get(gui.handles.value_numthinfilm_GUI, 'Value') == 3
    set(gui.handles.bg_film0_properties_GUI, 'Visible', 'on');
    set(gui.handles.bg_film1_properties_GUI, 'Visible', 'on');
    set(gui.handles.bg_film2_properties_GUI, 'Visible', 'off');
    set(gui.handles.title_bilayermodel_GUI,  'Visible', 'off');
    set(gui.handles.value_bilayermodel_GUI,  'Visible', 'off');
    
elseif get(gui.handles.value_numthinfilm_GUI, 'Value') == 4
    set(gui.handles.bg_film0_properties_GUI, 'Visible', 'on');
    set(gui.handles.bg_film1_properties_GUI, 'Visible', 'on');
    set(gui.handles.bg_film2_properties_GUI, 'Visible', 'on');
    set(gui.handles.title_bilayermodel_GUI,  'Visible', 'off');
    set(gui.handles.value_bilayermodel_GUI,  'Visible', 'off');
    
end

if get(gui.handles.value_bilayermodel_GUI, 'Value') > 1 && get(gui.handles.value_param2plotinyaxis_GUI, 'Value') == 3
    set(gui.handles.cb_residual_plot_GUI, 'Visible', 'on');
    
elseif get(gui.handles.value_bilayermodel_GUI, 'Value') > 1 && get(gui.handles.value_param2plotinyaxis_GUI, 'Value') == 4
    set(gui.handles.cb_residual_plot_GUI, 'Visible', 'on');
    
elseif get(gui.handles.value_multilayermodel_GUI, 'Value') > 1 && get(gui.handles.value_param2plotinyaxis_GUI, 'Value') == 3
    set(gui.handles.cb_residual_plot_GUI, 'Visible', 'on');
    
elseif get(gui.handles.value_multilayermodel_GUI, 'Value') > 1 && get(gui.handles.value_param2plotinyaxis_GUI, 'Value') == 4
    set(gui.handles.cb_residual_plot_GUI, 'Visible', 'on');
    
else
    set(gui.handles.cb_residual_plot_GUI, 'Value', 0);
    set(gui.handles.cb_residual_plot_GUI, 'Visible', 'off');
    
end

guidata(gcf, gui);

end

Contact us