LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RT Detection of Diastolic Phase from EKG Signal

Attached is a LV8.5 file.  It works on the data file that I am using.  It detects the R peak and then uses that as a starting point to detect the Q and T peaks.  Hope it helps.  I added very general comments on the block diagram.

The data I used is embedded in the Waveform control on the front panel so you should be able to run it right away.


Message Edited by rpursley8 on 05-12-2008 04:24 PM
Randall Pursley
0 Kudos
Message 11 of 17
(1,310 Views)
Martha,

When you look at Randall's VI you will see that it processes more than a minute of data at a time. It takes about 180 ms to run on my computer, according to the Profiler. Much of that time is spent on the display, but the subVIs which do not show their front panels take about 44 ms. Smaller datasets can be processed faster, but you have to have enough data to determine which peak is which, meaning at least one beat and probably two or three minimum.

Some of those functions may available in a point-by-point version which would allow you to be responsive to current data. You can also create your own with shift registers.

You may be able to omit some functions if you do not need all of the analyses he does.

Filters have delays which are inversely proportional to their bandwidth. For batch processing this is not an issue. You will need to evaluate the delays in your application.

He finds peaks by looking at zero crossings of the derivative of the signal. Noisy signals will have spurious peaks. This is why he does the low pass filtering (with delays) ahead of the peak detection. Lots of trade-offs!

Lynn
0 Kudos
Message 12 of 17
(1,304 Views)

Would you consider far fetched out of the box thinking in order to avoid filters?  Or math-intensive calculations?

Then I would need to know your contraints.  Such as level variations between Q-R-S-T.

 

0 Kudos
Message 13 of 17
(1,293 Views)
Beautiful; thanks!  I'll play with it and most likely get back to you with more questions 🙂
 
Martha
0 Kudos
Message 14 of 17
(1,282 Views)
I like the idea of minimizing the delays in any way possible .  I'll respond to you with useful details after I take a look at Randall's VI.
Thanks!
 
Martha
0 Kudos
Message 15 of 17
(1,280 Views)

Actually it is derrived from Randall's solution. 

Hopefully his solution meets your needs, otherwise let me know..  🙂

0 Kudos
Message 16 of 17
(1,271 Views)
this is a VI that I have been developing, myabe it can help u.
0 Kudos
Message 17 of 17
(1,155 Views)