09-04-2024 08:28 AM
The picture is the waveform I measured using the electrocardiogram sensor. The red square is the peak of the ECG R wave. It is obvious that there are very high spikes. I want to cut off the higher spikes.
Is there any expert who can answer this? Thank you.
09-04-2024 08:42 AM
@M0906961 wrote:
The picture is the waveform I measured using the electrocardiogram sensor. The red square is the peak of the ECG R wave. It is obvious that there are very high spikes. I want to cut off the higher spikes.
Is there any expert who can answer this? Thank you.
If you want a quick and dirty solution you can use the "In range and coerce" vi:
You can also make an algorithm that removes peaks or possibly design a filter.
PS: I can't find the online help documentation for LabVIEW VIs any more, where did NI put it now?
09-04-2024 10:29 AM
The first question to answer is why there are these spikes. Should there be spikes in these places, just with a lower amplitude? We cannot tell from the interpolated lines how these spikes look like. Are they single points or are there multiple points above the threshold? Could the be cause by processing issues?
If this data is real, maybe you could just set the y-axis to logarithmic scaling, for example.
As a first step, attach some raw data and explain exactly how you are reading it. We cannot debug these problem from a low resolution picture.
Just coercing spikes to a lower range is irreversible data manipulation that does not address the potential underlying issues.