Code covered by the BSD License  

Highlights from
Model-in-the-Loop for Embedded System Test (MiLEST) preliminary version

Model-in-the-Loop for Embedded System Test (MiLEST) preliminary version

by

 

22 Mar 2011 (Updated )

This is a draft preliminary version of the MiLEST Framework for eduction purpose.

Mask_Shut_off(varargin)
function varargout = Mask_Shut_off(varargin)

mOutputArgs     = {};       % Variable for storing output when GUI returns
set_param(char(varargin), 'T','off');

% Declare and create all the UI objects in this GUI here so that they can
% be used in any functions

hMainFigure    =   figure(...       % the main GUI figure
    'MenuBar','none', ...
    'Toolbar','none', ...
    'HandleVisibility','callback', ...
    'Name', mfilename, ...
    'NumberTitle','off', ...
    'Position',[380,350,250,180],...
    'Color', get(0, 'defaultuicontrolbackgroundcolor'));


%'Position',[0.1 0.70 0.2 0.05],...
%'Position',[0.3 0.80 0.4 0.15],...

text = uicontrol(hMainFigure,'Style','text',...
                'Parent', hMainFigure, ...
                'String','Warning: The mask will be shut off due to the deactivation.',...
                'Position',[60 100 160 40]);
            
hTransform2Button  =   uicontrol(...    % button for updating selected plot 
                        'Parent', hMainFigure, ...
                        'Units','normalized',...
                        'HandleVisibility','callback', ...
                        'String','Shut Off',...
                        'Callback', @hTransform2ButtonCallback);
hTransform1Button  =   uicontrol(...    % button for updating selected plot 
                        'Parent', hMainFigure, ...
                        'Units','normalized',...
                        'HandleVisibility','callback', ...
                        'String','Cancel',...
                        'Callback', @hTransform1ButtonCallback);
align([hTransform1Button hTransform2Button],'Fixed',70,'Bottom');

mOutputArgs{1} = hMainFigure;
if nargout>0
    [varargout{1:nargout}] = mOutputArgs{:};
end
function hTransform2ButtonCallback(hObject, eventdata)   
    % This function implements only Transformation Step Nuo. 2 on the UNIT
    % Level, which is: Test Structure Retrieval for UNIT Subsystem Level
    % p = strcmp(varargin, 'SUT_PI_TC/<Test data generator>')
    
    set_param(char(varargin), 'Mask','Off');
    delete(hMainFigure);
    
end
function hTransform1ButtonCallback(hObject, eventdata)   
    % This function implements only Transformation Step Nuo. 2 on the UNIT
    % Level, which is: Test Structure Retrieval for UNIT Subsystem Level
    delete(hMainFigure);
end
end

Contact us