function [cycleNum] = getCycles2(data)

cycleNum = 0;
diffNum = 6;

data{1}.cycleNum = zeros(length(data{1}.pressureDBar),1);
pressureDBar = data{1}.pressureDBar;

for i=1+diffNum:length(pressureDBar)
    diff = pressureDBar(i-diffNum)-pressureDBar(i);
    if( abs(diff) > 1.0)
        cycleNum = cycleNum + 1;
    end
    data{1}.cycleNum(i-diffNum) = cycleNum;
end
disp("hold");