function fig = scopegui()
% SCOPEGUI is GUI-part for oscilloscope SCOPE.M function
% This is the machine-generated representation of a Handle Graphics object
% and its children. Note that handle values may change when these objects
% are re-created. This may cause problems with any callbacks written to
% depend on the value of the handle at the time the object was saved.
%
% To reopen this object, just type the name of the M-file at the MATLAB
% prompt. The M-file and its associated MAT-file must be on your path.
load scopegui
h0 = figure('Units','points', ...
'BackingStore','off', ...
'Color',[0.8 0.8 0.8], ...
'Colormap',mat0, ...
'DeleteFcn','scope h_Close;', ...
'MenuBar','none', ...
'Name','DAPScope', ...
'NumberTitle','off', ...
'PointerShapeCData',mat1, ...
'Position',[87 137.25 546.75 324], ...
'RendererMode','manual', ...
'Tag','scope', ...
'WindowButtonDownFcn','zoom xdown', ...
'WindowButtonUpFcn','ones;');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'Callback','scope(''h_Start'');', ...
'ListboxTop',0, ...
'Position',[468.375 69.75 63.75 24.75], ...
'String','Start', ...
'Tag','h_Start');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'Callback','scope(''h_Stop'');', ...
'Enable','off', ...
'ListboxTop',0, ...
'Position',[468.375 43.5 63.75 24], ...
'String','Stop', ...
'Tag','h_Stop');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'Callback','scope h_Close;', ...
'ListboxTop',0, ...
'Position',[468.375 17.25 63.75 24], ...
'String','Close', ...
'Tag','h_Close');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0 0.5 0.5], ...
'Enable','inactive', ...
'FontWeight','demi', ...
'ForegroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[468 132 64.5 16.5], ...
'String','360mks/cnt', ...
'Style','edit', ...
'Tag','h_Dwell');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0 0.5 0.5], ...
'Enable','inactive', ...
'FontWeight','demi', ...
'ForegroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[466.875 246.75 66.75 15], ...
'String','0', ...
'Style','edit', ...
'Tag','h_SpNum');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','scope(''h_DwTime'');', ...
'ListboxTop',0, ...
'Max',333, ...
'Min',20, ...
'Position',[470.25 114 60 14.25], ...
'String','DwTime', ...
'Style','slider', ...
'Tag','h_DwTime', ...
'Value',100);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0 0 1], ...
'Enable','inactive', ...
'FontWeight','demi', ...
'ForegroundColor',[1 1 0], ...
'ListboxTop',0, ...
'Position',[459 289.5 82.5 15.75], ...
'String','LanscView 1.0', ...
'Style','edit', ...
'Tag','Label1Text');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[467.625 264 65.25 15.75], ...
'String','Trace Num', ...
'Style','text', ...
'Tag','Label2Text');
h1 = axes('Parent',h0, ...
'Units','points', ...
'Box','on', ...
'CameraUpVector',[0 1 0], ...
'CameraUpVectorMode','manual', ...
'Color',[0 0 0], ...
'ColorOrder',mat2, ...
'DrawMode','fast', ...
'FontSize',8, ...
'FontWeight','demi', ...
'NextPlot','replacechildren', ...
'Position',[142.5 27 312.75 268.5], ...
'Tag','h_Axes', ...
'XColor',[0 0 0], ...
'XLim',mat3, ...
'XLimMode','manual', ...
'YColor',[0 0 0], ...
'YLim',[-5000 5000], ...
'YLimMode','manual', ...
'ZColor',[0 0 0]);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'FontSize',8, ...
'FontWeight','demi', ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[235.2568512568512 5140.056022408962 17.32050807568877], ...
'String','Signal', ...
'Tag','h_AxesText4', ...
'VerticalAlignment','bottom');
set(get(h2,'Parent'),'Title',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'FontSize',8, ...
'FontWeight','demi', ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[235.2568512568512 -5560.224089635854 17.32050807568877], ...
'String','count', ...
'Tag','h_AxesText2', ...
'VerticalAlignment','cap');
set(get(h2,'Parent'),'XLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','right', ...
'Position',[-9.666225666225643 6036.414565826328 17.32050807568877], ...
'Tag','h_AxesText1', ...
'UserData',[0 1024 -5000 5000], ...
'Visible','off');
set(get(h2,'Parent'),'ZLabel',h2);
h2 = line('Parent',h1, ...
'Color',[1 1 0], ...
'EraseMode','background', ...
'LineWidth',0.2, ...
'Tag','h_AxesLine2', ...
'XData',mat4, ...
'YData',mat5);
h2 = line('Parent',h1, ...
'Color',[0 1 0], ...
'EraseMode','background', ...
'LineWidth',0.2, ...
'Tag','h_AxesLine1', ...
'XData',mat6, ...
'YData',mat7);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[83.25685125685125 -42.01680672269049 17.32050807568877], ...
'Rotation',90, ...
'Tag','h_AxesText3', ...
'VerticalAlignment','baseline');
set(get(h2,'Parent'),'YLabel',h2);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'Callback','scope h_Mode;', ...
'ListboxTop',0, ...
'Position',[468.375 185.25 63.75 15.75], ...
'String','Switch View', ...
'Tag','h_Mode');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0 0.5 0.5], ...
'Enable','inactive', ...
'FontWeight','demi', ...
'ForegroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[16.5 250 60 15.5], ...
'String','0', ...
'Style','edit', ...
'Tag','h_Inp1_ed');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','scope h_Inp1_sl;', ...
'ListboxTop',0, ...
'Max',100, ...
'Position',[80.25 251.25 14.25 30.75], ...
'String','Shift, mV', ...
'Style','slider', ...
'Tag','h_Inp1_sl');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
'FontWeight','bold', ...
'ForegroundColor',[0 1 0], ...
'ListboxTop',0, ...
'Position',[16.5 285.25 75 15.75], ...
'String','Channel 1', ...
'Style','text', ...
'Tag','Label2Text');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[15.75 267.75 60 15.75], ...
'String','Input', ...
'Style','text', ...
'Tag','h_Inp1_lb');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Enable','inactive', ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[16.5 232.25 60 15.75], ...
'String','Scale', ...
'Style','text', ...
'Tag','h_Scale1_lb');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','scope h_Scale1_sl;', ...
'ListboxTop',0, ...
'Max',101, ...
'Min',1, ...
'Position',[79.5 215.25 14.25 30.75], ...
'String','Shift, mV', ...
'Style','slider', ...
'Tag','h_Scale1_sl', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0 0.5 0.5], ...
'Enable','inactive', ...
'FontWeight','demi', ...
'ForegroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[16.5 214.75 60 15.5], ...
'String','1', ...
'Style','edit', ...
'Tag','h_Scale1_ed');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[466.875 150.75 66.75 15.75], ...
'String','Dwell Time', ...
'Style','text', ...
'Tag','Label2Text');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0 0.5 0.5], ...
'Enable','inactive', ...
'FontWeight','demi', ...
'ForegroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[16.5 179.25 60 15.75], ...
'String','0', ...
'Style','edit', ...
'Tag','h_Shift1_ed');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','scope h_Shift1_sl;', ...
'ListboxTop',0, ...
'Max',5000, ...
'Min',-5000, ...
'Position',[79.5 179.25 14.25 30.75], ...
'String','Shift, mV', ...
'Style','slider', ...
'Tag','h_Shift1_sl');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Enable','inactive', ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[16.5 197 60 15.75], ...
'String','Shift, mV', ...
'Style','text', ...
'Tag','h_Shift1_lb');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[16.5 52.75 60 15.75], ...
'String','Shift, mV', ...
'Style','text', ...
'Tag','h_Shift2_lb');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','scope h_Shift2_sl;', ...
'ListboxTop',0, ...
'Max',5000, ...
'Min',-5000, ...
'Position',[79.5 35.25 14.25 30.75], ...
'String','Shift, mV', ...
'Style','slider', ...
'Tag','h_Shift2_sl');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0 0.5 0.5], ...
'FontWeight','demi', ...
'ForegroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[16.5 35.25 60 15.5], ...
'String','0', ...
'Style','edit', ...
'Tag','h_Shift2_ed');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0 0.5 0.5], ...
'FontWeight','demi', ...
'ForegroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[16.5 70.5 60 15.75], ...
'String','1', ...
'Style','edit', ...
'Tag','h_Scale2_ed');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','scope h_Scale2_sl;', ...
'ListboxTop',0, ...
'Max',101, ...
'Min',1, ...
'Position',[79.5 70.5 14.25 30.75], ...
'String','Shift, mV', ...
'Style','slider', ...
'Tag','h_Scale2_sl', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[16.5 88.25 60 15.75], ...
'String','Scale', ...
'Style','text', ...
'Tag','h_Scale2_lb');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[16.5 123.75 60 15.75], ...
'String','Input', ...
'Style','text', ...
'Tag','h_Inp2_lb');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
'FontWeight','bold', ...
'ForegroundColor',[1 1 0], ...
'ListboxTop',0, ...
'Position',[16.5 141.5 75 15.75], ...
'String','Channel 2', ...
'Style','text', ...
'Tag','Label2Text');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','scope h_Inp2_sl;', ...
'ListboxTop',0, ...
'Max',100, ...
'Position',[79.5 107.25 14.25 30.75], ...
'String','Shift, mV', ...
'Style','slider', ...
'Tag','h_Inp2_sl');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0 0.5 0.5], ...
'FontWeight','demi', ...
'ForegroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[17.25 106 60 15.75], ...
'String','0', ...
'Style','edit', ...
'Tag','h_Inp2_ed');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[467.625 221.25 65.25 15.75], ...
'String','View Mode', ...
'Style','text', ...
'Tag','Label2Text');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0 0.5 0.5], ...
'Enable','inactive', ...
'FontWeight','demi', ...
'ForegroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[466.875 204 66.75 15], ...
'String','X-T', ...
'Style','edit', ...
'Tag','h_View_ed');
if nargout > 0, fig = h0; end