ISO 2631 Acceleration filter

1 Comment
Answers (3)
0 Comments
Hi @Minh Tran ,
You asked, “I currently want to filter this acceleration curve by using ISO 2631 standard, It would be a big save of time if you alreadly have the code of this filter”
Please see my response to your comments below.
To filter an acceleration curve using the ISO 2631 standard, I need to follow a systematic approach that involves understanding the mathematical formulation provided and implementing it in MATLAB. The weighted r.m.s. acceleration is a crucial metric for assessing vibration exposure, and it is calculated using the following equation on page 6 of the standard. So, first you need to have your acceleration data in a time series format which can be collected from sensors or simulations. The ISO 2631 standard specifies different frequency-weighting curves. You will need to implement these curves in your MATLAB code. For simplicity, let’s assume I am using a basic weighting function. Also, the integral in the formula can be computed using numerical integration methods available in MATLAB. Below is a MATLAB code snippet that demonstrates how to calculate the weighted r.m.s. acceleration.
% Sample MATLAB Code to Calculate Weighted r.m.s. Acceleration
% Sample acceleration data (in m/s^2) t = 0:0.01:10; % Time vector from 0 to 10 seconds with 0.01s intervals a = sin(2*pi*0.5*t) + 0.5*randn(size(t)); % Example acceleration data with noise
% Define the weighting function (example: ISO 2631-1) % This is a simple example; actual weighting functions should be defined based on ISO tables weighting_factor = 1 ./ (1 + (t/1).^2); % Example weighting function
% Apply the weighting function to the acceleration data a_weighted = a .* weighting_factor;
% Calculate the duration of the measurement T = t(end); % Total time duration
% Calculate the weighted r.m.s. acceleration Aw = sqrt((1/T) * trapz(t, a_weighted.^2));
% Display the result
fprintf('The weighted r.m.s. acceleration (A_w) is: %.4f m/s^2\n', Aw);
So, if you look at the code, it generates a sample acceleration signal using a sine function combined with random noise to simulate real-world data.A simple weighting function is defined. In practice, you would replace this with the appropriate function from the ISO 2631 standard. The acceleration data is multiplied by the weighting factor to obtain the weighted acceleration and trapz function is used for numerical integration over the time vector. Finally, weighted r.m.s. acceleration is computed and displayed. This process not only aids in understanding vibration exposure but also ensures compliance with international standards, thereby enhancing safety and comfort in various applications. If you have specific weighting functions or additional parameters from the ISO tables, you can easily integrate them into the provided framework. Hope this answers your question.
0 Comments
0 Comments
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!