

clear Voltage t;
ii=1;
h=figure

LabJackSetDAC(0,2.4);
tic
while ishandle(h)
    LabJackReadAI(0)
    Voltage(ii)=LabJackReadAI(0);
    t(ii)=toc;
    plot(t,Voltage);
    xlabel('time (s)')
    ylabel('Voltage (V)')
    
    pause(.1)
    ii=ii+1;
end
