order analysis of the electric motor
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have to do a order analysis for the electric motor. when i am doing the analysis there are lot of errors showing in my code. please help me to cmplete this analysis. my code is given below and i have attached a file.
NFFT = 2000; % then df = 1 Hz
OVERLAP = 0.75;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% load signal
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[rpm, fs]=audioread('09_52_00.wav');
dt = 1/fs;
[samples,channels] = size(rpm);
% time vector
t = (0:samples-1)*dt;
vib = vib - mean(vib); % Remove the DC component
subplot(2,1,1)
plot(t,rpm) % Plot the motor rotational speed
xlabel('Time (s)')
ylabel('Engine Speed (RPM)')
title('Engine speed')
subplot(2,1,2)
plot(t,vib) % Plot the vibration signal
title('Accelerometer Vibration Data')
rpmfreqmap(vib,fs,rpm)
rpmfreqmap(vib,fs,rpm,1)
rpmordermap(vib,fs,rpm,0.005)
[map,mapOrder,mapRPM,mapTime] = rpmordermap(vib,fs,rpm,0.005);
figure
orderspectrum(map,mapOrder)
[spec,specOrder] = orderspectrum(map,mapOrder);
[~,peakOrders] = findpeaks(spec,specOrder,'SortStr','descend','NPeaks',2);
peakOrders = round(peakOrders,3)
ordertrack(map,mapOrder,mapRPM,mapTime,peakOrders)
orderWaveforms = orderwaveform(vib,fs,rpm,peakOrders);
helperPlotOrderWaveforms(t,orderWaveforms,vib)
mainRotorOrder = mainRotorEngineRatio;
tailRotorOrder = tailRotorEngineRatio;
ratioMain = peakOrders/mainRotorOrder
ratioTail = peakOrders/tailRotorOrder
1 comentario
Mathieu NOE
el 1 de Sept. de 2022
hello again ! (seen this wav file already ! )
FYI , the rpm cannot be loaded from your wav file (that contains 3 vibration signals and no RPM)
so this line is wrong :
[rpm, fs]=audioread('09_52_00.wav');
this is supposed to be :
[vib, fs]=audioread('09_52_00.wav');
and from there we don't have the rpm data (where do you record it ? )
Respuestas (0)
Ver también
Categorías
Más información sobre Vibration Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!