99 lines
2.6 KiB
Matlab
99 lines
2.6 KiB
Matlab
close all;
|
|
|
|
% dir = 'Sin_Variar';
|
|
%
|
|
%
|
|
% load (strcat('data/',dir,'/Torque.mat'));
|
|
% load (strcat('data/',dir,'/Speed.mat'));
|
|
% load (strcat('data/',dir,'/Currents.mat'));
|
|
% load (strcat('data/',dir,'/vABC.mat'));
|
|
% load (strcat('data/',dir,'/Vabc_n.mat'));
|
|
% load (strcat('data/',dir,'/vdq.mat'));
|
|
% load (strcat('data/',dir,'/idq.mat'));
|
|
% load (strcat('data/',dir,'/idq_plus_FW.mat'));
|
|
% load (strcat('data/',dir,'/Vdc.mat'));
|
|
% load (strcat('data/',dir,'/Idc.mat'));
|
|
%
|
|
% figure('Color','w');
|
|
% plot(Speed.Data*60/2/pi,Torque.Data);
|
|
% xlabel('Speed [rpm]');
|
|
% ylabel('Torque [N-m]');
|
|
% title('Torque and Speed');
|
|
% saveas(gcf,'Imagenes/Torque and Speed.png')
|
|
%
|
|
% figure('Color','w');
|
|
% plot(Speed.Data*60/2/pi,Torque.Data.*Speed.Data/1000);
|
|
% xlabel('Speed [rpm]');
|
|
% ylabel('Power [kW]');
|
|
% title('Power and Speed');
|
|
% saveas(gcf,'Imagenes/Power and Speed.png')
|
|
%
|
|
% figure('Color','w');
|
|
% plot(Speed.Data*60/2/pi,Currents.Data);
|
|
% xlabel('Speed [rpm]');
|
|
% ylabel('Current [A]');
|
|
% title('Currents and Speed');
|
|
% saveas(gcf,'Imagenes/Currents and Speed.png')
|
|
%
|
|
% figure('Color','w');
|
|
% plot(Speed.Data*60/2/pi,vABC.Data);
|
|
% xlabel('Speed [rpm]');
|
|
% ylabel('Voltage [V]');
|
|
% title('vABC and Speed');
|
|
% saveas(gcf,'Imagenes/vABC and Speed.png')
|
|
%
|
|
% figure('Color','w');
|
|
% plot(Speed.Data*60/2/pi,Vabc_n.Data);
|
|
% xlabel('Speed [rpm]');
|
|
% ylabel('Voltage [V]');
|
|
% title('Vabc_n and Speed');
|
|
% saveas(gcf,'Imagenes/Vabc_n and Speed.png')
|
|
%
|
|
% figure('Color','w');
|
|
% plot(Speed.Data*60/2/pi,vdq.Data);
|
|
% xlabel('Speed [rpm]');
|
|
% ylabel('Voltage [V]');
|
|
% title('Vdq and Speed');
|
|
% saveas(gcf,'Imagenes/Vdq and Speed.png')
|
|
%
|
|
% figure('Color','w');
|
|
% plot(Speed.Data*60/2/pi,idq.Data);
|
|
% xlabel('Speed [rpm]');
|
|
% ylabel('Current [A]');
|
|
% title('idq and Speed');
|
|
% saveas(gcf,'Imagenes/idq and Speed.png')
|
|
%
|
|
% figure('Color','w');
|
|
% plot(Speed.Data*60/2/pi,idq_plus_FW.Data);
|
|
% xlabel('Speed [rpm]');
|
|
% ylabel('Current [A]');
|
|
% title('idq plus FW and Speed');
|
|
% saveas(gcf,'Imagenes/idq plus FW and Speed.png')
|
|
%
|
|
% figure('Color','w');
|
|
% plot(Speed.Data*60/2/pi,Vdc.Data);
|
|
% xlabel('Speed [rpm]');
|
|
% ylabel('Vdc [N-m]');
|
|
% title('Vdc and Speed');
|
|
% saveas(gcf,'Imagenes/Vdc and Speed.png')
|
|
%
|
|
% figure('Color','w');
|
|
% plot(Speed.Data*60/2/pi,Idc.Data);
|
|
% xlabel('Speed [rpm]');
|
|
% ylabel('Idc [A]');
|
|
% title('Idc and Speed');
|
|
% saveas(gcf,'Imagenes/Idc and Speed.png')
|
|
%
|
|
% P_ele = rms(Vdc.*Idc.Data)
|
|
% P_mec = rms(Torque.Data.*Speed.Data)
|
|
%
|
|
% ef = P_mec/P_ele
|
|
%
|
|
% figure('Color','w');
|
|
% X = categorical({'Sin Variar','Variado'});
|
|
% X = reordercats(X,{'Sin Variar','Variado'});
|
|
% bar(X, [1,3]);
|
|
% ylabel('Eficiency [%]');
|
|
% title('Idc and Speed');
|
|
|