Commit 4ed90ef1 authored by sstucker's avatar sstucker
Browse files

tIncMan (for all channels) interface is functional with checkbox GUI. Will not...

tIncMan (for all channels) interface is functional with checkbox GUI. Will not work for multiple data blocks.
parent b1a56af6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -169,11 +169,13 @@ classdef ProcInputClass < handle
        
        % ----------------------------------------------------------------------------------
        function val = GetTincMan(obj, iBlk)
            val = {};
            val = [];
            if ~exist('iBlk','var') || isempty(iBlk)
                val = obj.tIncMan;
                val = obj.tIncMan{1};
            elseif ~isempty(obj.tIncMan)
                val = obj.tIncMan{iBlk};
            else  % tInc is invalid or unpopulated
                val = [];
            end
        end
       
+2 −2
Original line number Diff line number Diff line
@@ -1214,9 +1214,9 @@ classdef ProcStreamClass < handle
        % ----------------------------------------------------------------------------------
        function tIncMan = GetTincMan(obj, iBlk)
            if ~exist('iBlk','var')
                iBlk = [];
                iBlk = 1;
            end
            tIncMan = obj.input.GetVar('tIncMan', iBlk);
            tIncMan = obj.input.GetTincMan(iBlk);
        end
        

+6 −3
Original line number Diff line number Diff line
@@ -511,6 +511,10 @@ classdef RunClass < TreeNodeClass
                iBlk = 1;
            end
            tIncMan = obj.procStream.input.GetTincMan(iBlk);
            if isempty(tIncMan)  % If the Tinc array is unitialized TODO find a more sensical place to do this
               obj.InitTincMan();
               tIncMan = obj.procStream.input.GetTincMan(iBlk);
            end
        end
        
        
@@ -534,7 +538,7 @@ classdef RunClass < TreeNodeClass
        
        % ----------------------------------------------------------------------------------
        function InitTincMan(obj)
            iBlk = 1;
            iBlk = 1;  % TODO implement multiple data blocks
            while 1
                t = obj.acquired.GetTime(iBlk);
                if isempty(t)
@@ -545,7 +549,6 @@ classdef RunClass < TreeNodeClass
                iBlk = iBlk+1;
            end
        end              
                
    end        % Public Set/Get methods
    
    
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ for iBlk = iDataBlks
        end
        col = setColor(mode, ii);
        t = maingui.dataTree.currElem.GetTime(iBlk);
        [h, tPtsExclTot] = drawPatches(t, tInc(:,kk), tPtsExclTot, col, handles);        
        [h, tPtsExclTot] = drawPatches(t, tInc, tPtsExclTot, col, handles);        
        if strcmp(mode,'manual')
            for jj=1:length(h)
                set(h(jj), 'ButtonDownFcn', sprintf('PatchCallback(%d)',jj));
+7 −6
Original line number Diff line number Diff line
@@ -429,7 +429,12 @@ t = tic;
% Set the display status to pending. In order to avoid redisplaying 
% in a single callback thread in functions called from here which 
% also call DisplayData
try
    maingui.dataTree.CalcCurrElem();
catch
    MainGUI_EnableDisableGUI(handles,'on');
    return
end
    
% Restore original selection listboxGroupTree
set(handles.listboxGroupTree, 'value',val0);
@@ -1520,10 +1525,6 @@ for iBlk=1:iDataBlks

end

if isempty(out.format)
    return;
end

% Display excluded time and rejected stims
Display(handles, hObject);