Use PeakFinder Block to find maxima.
![Screenshot (22).png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/203242/Screenshot%20(22).png)
- Input is constant block which contain vibration data
- Find Maxima Output the number of extrema (maxima and minima) in an input signal. This can also be customized to output maxima or minima indices.
- Display block captures the count and index.