- #1
Hzaqa
- 15
- 0
Hi,
Recently, I've performed milling experimental test in order to analysis the cutting forces.
The problem here is how to filter these signal force
% filtering
% load the filters
% filt1 is stopping at 400Hz and
% filt2 is stopping at 90Hz
load ('Filters.mat');
flt_used=filt2; % filt1 or filt2
a=flt_used.tf.num;
b=flt_used.tf.den;
Filt_Fx=filtfilt (a,b,Fx);
Filt_Fy=filtfilt (a,b,Fy);
Filt_Fz=filtfilt (a,b,Fz);
% Filt_Mz=filtfilt (a,b,Mz);
% Verify plots \[Dash] uncomment when you need
plot (Fy);hold on;
plot (Filt_Fy,'red');
% Plotting the force signals (FILTERED)
% build the time line
time=0:1/Fs:length (Fx)/Fs-1/Fs;
figure1=figure ();axes1 = axes ('Parent',figure1);
plot3=plot (time,Filt_Fz);hold on
plot1=plot (time,Filt_Fx);
plot2=plot (time,Filt_Fy);
hold off;
axis tight
ylabel ('Cutting Force (N)');
xlabel ('Time (Sec)');
% Create multiple lines using matrix input to plot
set (plot1,'Color',[0 0 1],'DisplayName','Fx (N)');
set (plot2,'Color',[1 0 0],'DisplayName','Fy (N)');
set (plot3,'Color',[0 0 0],'DisplayName','Fz (N)');
% Create legend
legend (axes1,'show');
Any comments about this,
Thanks
HAZAQ
Recently, I've performed milling experimental test in order to analysis the cutting forces.
The problem here is how to filter these signal force
% filtering
% load the filters
% filt1 is stopping at 400Hz and
% filt2 is stopping at 90Hz
load ('Filters.mat');
flt_used=filt2; % filt1 or filt2
a=flt_used.tf.num;
b=flt_used.tf.den;
Filt_Fx=filtfilt (a,b,Fx);
Filt_Fy=filtfilt (a,b,Fy);
Filt_Fz=filtfilt (a,b,Fz);
% Filt_Mz=filtfilt (a,b,Mz);
% Verify plots \[Dash] uncomment when you need
plot (Fy);hold on;
plot (Filt_Fy,'red');
% Plotting the force signals (FILTERED)
% build the time line
time=0:1/Fs:length (Fx)/Fs-1/Fs;
figure1=figure ();axes1 = axes ('Parent',figure1);
plot3=plot (time,Filt_Fz);hold on
plot1=plot (time,Filt_Fx);
plot2=plot (time,Filt_Fy);
hold off;
axis tight
ylabel ('Cutting Force (N)');
xlabel ('Time (Sec)');
% Create multiple lines using matrix input to plot
set (plot1,'Color',[0 0 1],'DisplayName','Fx (N)');
set (plot2,'Color',[1 0 0],'DisplayName','Fy (N)');
set (plot3,'Color',[0 0 0],'DisplayName','Fz (N)');
% Create legend
legend (axes1,'show');
Any comments about this,
Thanks
HAZAQ