EXERCISE 3- PERFORMANCE ANALYSIS TOOL

P-R&D #3: This lab tested using the data extraction tool and running the AEV on the track.

MATLAB CODE FOR PLOTS

% Downloads data from excel file of data extraction tool

data = table2array(DataonTrack);

% Creates all of the necessary vectors from the downloaded data

time = str2double(data(9:193, 7))
power = str2double(data(9:193, 13))
energy = str2double(data(9:193, 15))
distance = str2double(data(9:193, 10))

% Power v. Time Plot

plot(time, power);
title(‘Power v. Time’);
xlabel(‘Time (s)’);
ylabel(‘Power (watts)’);

% Power v. Distance Plot

plot(distance, power);
title(‘Power v. Distance’);
xlabel(‘Distance (m)’);
ylabel(‘Power (watts)’);

% Energy v. Time Plot

plot(time, energy);
title(‘Energy v. Time’);
xlabel(‘Time (s)’);
ylabel(‘Energy (joules)’);

% Energy v. Distance Plot

plot(distance, energy);
title(‘Energy v. Distance’);
xlabel(‘Distance (m)’);
ylabel(‘Energy (joules)’);

PLOTS FROM DATA

 

Energy v. Distance
The AEV continually uses more energy until it has traveled a distance on 1 meter. After 1 meter, the AEV was no longer receiving power from the motors and using energy. However, the AEV coasts to a stop once the motors turn off. The energy levels off after 1 meter, which indicates when the AEV started coasting to a stop.
Power v. Distance
The power to the AEV increases until the power reaches about 5-6 watts. Then, the AEV moves forward with 25% power for about 0.12 meters and then decreases the power to 20% until the AEV has traveled about 0.36 meters. The large spike in the graph around 0.5 meters is when the motors reverse. After the motors reverse, the AEV travels at 25% power for about 0.5 meters before all power is shut off and the AEV coasts to a stop.

 

 

Power v. Time
The motors take about 4 seconds to accelerate to 25% power. Then, the AEV travels at 25% power for 1 second and 20% power for 2 seconds. The large spike in the graph at 6 seconds is when the motors reverse. After the motors reverse, the AEV travels at 25% power for 2 seconds until all power is shut off and the AEV coasts to a stop.

 

 

Energy v. Time
The AEV continually uses more energy as time passes. Once 8 seconds have passed, the AEV energy levels off. As with the Energy v. Distance plot, the leveling off of the energy is a result of the AEV coasting to a stop.