05-26-2013 06:38 AM
Hi.
I wolud like to know a method to find the total number of peaks a signal whose time duration is more than a minute.
I've attached a vi, which has a simulated ECG signal for which the number of peaks has to be detected.
I've tried to get the number of peaks in an array every time the signal moves in the waveform, but it is not dispayed as array of numbers.
Kindly help me in solving this.
Good Day
05-26-2013 12:07 PM
05-26-2013 02:49 PM
05-27-2013 05:26 AM
Hi NapDynamite,
Thanks for your reply. I can understand the VI you have sent me, but it works out only to find out the peaks at that instant of time.
I would like to find total number of peaks that appear in that waveform graph until the signal stops running (or until it is intentionally stopped).
Kindly help me in solving this.
Good Day
05-27-2013 06:45 AM
take a look at this one ...
http://forums.ni.com/t5/High-Speed-Digitizers/Continuous-pulse-counting/m-p/2403134#M4122
05-27-2013 08:05 AM
here is something to play with, but keep in mind that for ECG pulse counting this is not the best approach.
05-27-2013 08:49 AM
Hi Henrik_Volkers,
Thanks for your reply.
I went to the link which you suggested me,
http://forums.ni.com/t5/High-Speed-Digitizers/Continuous-pulse-counting/m-p/2403134#M4122,
and I downloaded the VI, pulse counting signal loop.VI, but i'm unable to run it since there are some sub VIs which I cannot open.
Also, in the VI, pulse.vi 23 KB, may I know how to replace 'read from measurement file.VI' instead of simulating the signal and how to control the value of 'N' to get better result ?
Good Day
05-27-2013 08:55 AM
Hi 1984,
Thanks for your reply.
Kindly be more specific about implementing the equation which you have suggested " speaking x(i) is a peak IF (x(i-1)<x(i)) AND (x(i+1)=<x(i))" .
Can it be implemented using MATLAB script?
Please suggest me an idea for it.
Good Day
05-27-2013 08:57 AM - edited 05-27-2013 08:58 AM
just replace the sequence in the while loop with you datasource and delete the simulation part.
And don't expect ready solutions , we are not here to do your homework 😉
05-27-2013 09:02 AM
I don't have your subvis but here is a mod of your first post