close all

figure

plot(diff(time-Eng.EpochSecs(1)));
xlabel('sample number')
ylabel('Time Difference');


figure
plot(time-Eng.EpochSecs(1),BatteryVoltage);
xlabel('time (seconds)');
ylabel('Battery Voltage');
figure

figure
plot(time-Eng.EpochSecs(1),BatteryCurrent);
xlabel('time (seconds)');
ylabel('');

figure
plot(time-Eng.EpochSecs(1),LoadDumpVoltage);
xlabel('time (seconds)');
ylabel('Load Dump Voltage');

plot(time-Eng.EpochSecs(1),LoadDumpCurrent);
xlabel('time (seconds)');
ylabel('Load Dump Current');

figure
plot(time-Eng.EpochSecs(1),UpperSpringTemperature);
xlabel('time (seconds)');
ylabel('Upper Spring Temperature');

figure
plot(time-Eng.EpochSecs(1),LowerSpringTemperature);
xlabel('time (seconds)');
ylabel('Lower Spring Temperature');

figure
plot(time-Eng.EpochSecs(1),UpperSpringPressure);
xlabel('time (seconds)');
ylabel('Upper Spring Pressure');

figure
plot(time-Eng.EpochSecs(1),LowerSpringPressure);
xlabel('time (seconds)');
ylabel('Lower Spring Pressure');

figure
plot(time-Eng.EpochSecs(1),LoadCellForce);
xlabel('time (seconds)');
ylabel('Load Cell Force');

figure
plot(time-Eng.EpochSecs(1),PistonDistance);
xlabel('time (seconds)');
ylabel('Piston Distance');

figure
plot(time-Eng.EpochSecs(1),LoadDumpTemp);
xlabel('time (seconds)');
ylabel('Load Dump Temperature');

figure
plot(time-Eng.EpochSecs(1),LoadDumpRelayPos);
xlabel('time (seconds)');
ylabel('Load Dump Relay Position');

figure
plot(time-Eng.EpochSecs(1),SafetyRelayPos);
xlabel('time (seconds)');
ylabel('Extend/Retract Flag');


figure
ah1 = subplot(4,1,1)
plot(time-Eng.EpochSecs(1));
ylabel('Time (seconds)');

ah2 = subplot(4,1,2)
plot(diff(time-Eng.EpochSecs(1)));
ylabel('Time Difference');

ah3 = subplot(4,1,3)
plot(LoadDumpVoltage);
ylabel('Load Dump Voltage');

ah4 = subplot(4,1,4)
plot(LoadDumpCurrent/10);
xlabel('sample number');
ylabel('Load Dump Current');

linkaxes([ah1 ah2 ah3 ah4],'x');

figure
ah1 = subplot(2,1,1)
plot(LoadDumpVoltage(2:end),diff(time-Eng.EpochSecs(1)))
ylabel('Time Difference');
xlabel('Load Dump Voltage');

ah2 = subplot(2,1,2)
plot(LoadDumpCurrent(2:end)/10,diff(time-Eng.EpochSecs(1)))
ylabel('Time Difference');
xlabel('Load Dump Current');
