% pulser count collector pulser3.m

% patrick ragsdale ragsdale@mit.edu
% junior lab

clear = trump_pci_send_command('CLEAR');
run_time = input('amount of time');
start = trump_pci_send_command('START');

i = 1;

while i <= run_time
i = i + 1;

x = (1:1:500);

y = trump_pci_get_data(0,500);

plot(x,y)
drawnow

ylabel('counts')
title('pulser 807')
grid

end
stop = trump_pci_send_command('STOP');


