%function [out] = wobbler_cycle(strip_vial, hyb_vial, react_vial, buffer_start)
function [out] = wobbler_cycle(strip_vial, hyb_vial, react_vial, buffer_start, react_temp, react_time)

hyb_temp1 = 56;
hyb_temp2 = 42;
hyb_time1 = 5;
hyb_time2 = 2;
%react_temp = 30;
%react_time = 20;
syringe_initialize;

disp([' ']);
disp('---------------------------------------------');
disp([' ']);
disp([timestamp(clock) ' **** STARTING wobbler_cycle(' num2str(strip_vial) ',' num2str(hyb_vial) ',' num2str(react_vial) ',' num2str(react_temp) ',' num2str(react_time) ')']);

disp([timestamp(clock) ' **** STRIPPING WITH UDG FROM ' num2str(strip_vial)]);
out = wobbler_strip(strip_vial, buffer_start);

disp([timestamp(clock) ' **** HYBRIDIZING PRIMER FROM ' num2str(hyb_vial) ' (' num2str(hyb_temp1) ', ' num2str(hyb_temp2) ', ' num2str(hyb_time1) ', ' num2str(hyb_time2) ')']);
out = wobbler_hyb(hyb_vial, buffer_start + 2, hyb_temp1, hyb_temp2, hyb_time1, hyb_time2);

disp([timestamp(clock) ' **** REACTION PROCEEDING WITH REAGENTS FROM ' num2str(react_vial) ' (' num2str(react_temp) 'C for ' num2str(react_time) ' mins)']);
out = wobbler_react(react_vial, buffer_start + 3, react_temp, react_time); 

disp([timestamp(clock) ' **** ENDED wobbler_cycle(' num2str(strip_vial) ',' num2str(hyb_vial) ',' num2str(react_vial) ',' num2str(buffer_start) ')']);
disp([' ']);
disp('---------------------------------------------');



