%% plot the captured input signal
% @author Andi Dittrich
% @date 09.04.2012
function PlotTrigger(plotName, startTime, stopTime, signal)
    % sample time
    sampleTime = 0.001;
    
    % calculate start/stop indexes
    start = startTime/sampleTime;
    stop = stopTime/sampleTime;

    % Create figure
    figure1 = figure();

    % Create axes
    axes1 = axes('Parent',figure1);
    ylim(axes1,[-1.2 0.2]);
    box(axes1,'on');
    hold(axes1,'all');

    % Create plot
    plot(signal.time(start:1:stop), signal.signals.values(start:1:stop));

    % Create xlabel
    xlabel('Time in seconds');

    % Create ylabel
    ylabel('Axis-Value normalized to 1');

    % Create title
    title(plotName);
end

