function [ error ] = MakeQuickViewPlots(path,filename)

global QuickViewPlots_path;


DecodedResults_path = 'DecodedResults/';
QuickViewPlots_path = 'QuickViewPlots/';


disp([path filename '.mat']);

load([path filename '.mat']);


Force = (SC_LowerPressure-1.59)*(8758)/(262.7-1.59);

x = SC_Range;
n = 10;
filtx = filter(ones(1,n)/n,1,x);
x = filtx;

%x = (SC_UpperPressure-18.9)*(71.5-0)/(294.2-18.9);
v = [0 diff(x)/.1];


Pin = (Force*4.45).*(v*.0254);



Pout = PC_Voltage.*(PC_BattCurr+PC_LoadCurr);


figure('Position',[1000 525 1359 973]);
ah1 = subplot(4,1,1);
plot(Time_DateNum,PC_Voltage)
hold all
plot(Time_DateNum,BC_Voltage)
legend('Bus Voltage','Batt Voltage');
ylabel('Voltage (V)');
datetick('x');
title(filename);
ah1 = subplot(4,1,2);
plot(Time_DateNum,BC_GroundFault)
ylabel('Ground Fault Signal (mA)');
ylim([0 20]);
datetick('x');
ah2 = subplot(4,1,3);
plot(Time_DateNum,PC_BattCurr,Time_DateNum,PC_LoadCurr)
ylabel('Current (A)');
legend('Battery Current','Load Current');
datetick('x');
ah3 = subplot(4,1,4);
plot(Time_DateNum,Pout);
ylabel('W');
datetick('x');

print([QuickViewPlots_path filename '.png'],'-dpng')

close all

%end

