% HPU data header: time(msec), trajectory amplitude, actual ram position, analog output voltage
%HPUData = csvread('16XXDec29-09.csv');
HPUData = csvread('0856Dec30-09.csv');
%HPUData = csvread('1519Jan05-10.csv');
ramZ = 0.0254 * HPUData(:,3);
trajZ = 0.0254 * HPUData(:,2);
ramTime = HPUData(:,1) / 1000;
Zerror = trajZ - ramZ;

RamNumSamples = length(ramZ);
ramDT = ramTime(2:RamNumSamples) - ramTime(1:RamNumSamples-1); 
ramVelocity =(ramZ(2:RamNumSamples) - ramZ(1:RamNumSamples-1)) ./ ramDT; 
