Monday, February 21, 2011

Simulating Complex ECG Patterns with an Arbitrary Waveform Generator

Using an electrocardiogram (ECG sometimes called an EKG) is an invaluable way to identify various physical ailments. Today there is a wide array of cardiac equipment that displays and interprets ECG signal patterns. Medical equipment designers need a flexible way to seamlessly generate accurate ECG signal patterns to verify and test their designs. In this post, I will discuss how to generate complex ECG signal patterns with an arbitrary waveform generator (AWG). Below in the figure is a 12-lead ECG waveform.

There are three methods to create and store an ECG on an AWG:
1. You can use a device such as a digitizer or oscilloscope to capture an actual ECG signal from a patient. Then you upload the digitized points to the AWG. With modern AWGs, there are many ways to accomplish this, including using a .csv file and a memory stick.
2. You can use mathematical software to create an ECG signal. There may be custom software for the AWG that can do this, or you could use a standard software package, such as MATLAB ®.
3. If your instrument has this capability, you can use your AWG’s built-in "typical" ECG waveform. The Agilent 33521A has a built-in ECG waveform.

Using an AWG’s arb sequencing capability to simulate complex ECG patterns
AWGs that have arb sequencing ability, like the 33521A function/arb waveform generator, can seamlessly transition from one arb waveform stored in memory to another without any discontinuities in the output. The figure below shows an example using the 33521A’s arb sequencing feature to combine three different ECG waveforms stored in different places in memory into one waveform.

The first ECG waveform cycle is meant to be an "ideal" ECG waveform. The other two were based on the first one but were changed in a systematic way using MATLAB software. Notice the second ECG
waveform has a flattened T wave. In the third ECG waveform, the T wave is inverted.
The 33521A’s sequencing capability provides flexibility for controlling when it sequences from one waveform to another. One way to control sequencing is to specify how many cycles each waveform is run before sequencing to the next. Sequences can also return to a waveform that was used previously in that sequence.
Combining the 33521A’s arb sequencing feature with its large arb memory, 1 million points per channel standard with 16 million optional, gives you the ability to simulate complex ECG patterns for thorough testing of cardiac monitoring equipment designs. For example, each ECG waveform shown in the above figure were created with about 500 points. You could store up to 2,000 different ECG waveforms of this size in the 33521A’s standard arb memory. The 33521A allows arb sequences to contain up to 512 steps, allowing you to create complex ECG patterns for thorough testing. You can control arb sequences on the 33521A asynchronously by using triggers to control waveform transitions instead of cycle counts. This provides you with the ability to continuously cycle a waveform for some undetermined time period until it receives a software trigger or external trigger or front-panel trigger. Once it receives the trigger, the 33521A transitions to the next waveform in the sequence. You can also mix the two ways of transitioning through a sequence, specifying a count and using triggers.

Free Matlab ECG simulation program
You can download and use an ECG simulator program created in MATLAB®. You can find the ECG simulator download and instructions at simulation-using-matlab or type “ECG MATLAB” into a search engine and it should be at the top of the results. The program creates ECG waveforms using multiple Fourier series summed together. A Fourier series is used for each distinct wave shape in the ECG waveform, such as the P wave, T wave, etc. The program allows you to adjust various ECG waveform parameters to simulate various cardiac conditions. You can then transfer the ECG waveform you created to a 33521A either by storing it in a .csv file and using a memory stick or remotely via Matlab's instrument toolbox feature.


  1. That was helpfull for some beginners. DMM formation not that simple as amused, but I tried for once. I have been learning for Asic Chip Design. My learning included fast, low power with high speed designs for automotive and electronic designs.


  3. Very nice article. I recommand it to my friends,I,ll be back here again and again visit here
    ALOKA UST-5286

  4. Very nice article. I recommand it to my friends,I,ll be back here again and again visit here
    ALOKA UST-5512N

  5. Very nice article. I recommand it to my friends,I,ll be back here again and again . ALOKA UST-5546

  6. Very informative and impressive post you have written, this is quite interesting and i have went through it completely, an upgraded information is shared, keep sharing such valuable information.

  7. Your post will be rather good, and I’m sure some will find it interesting because it’s about a topic that’s as widely

    discussed as others. Some may even find it useful.Thanks so much for your post.



  8. I love this content. Very informative article. Thanks for sharing……Take a look to our blog:
    ALOKA UST-5546

  9. Great post. I have in fact enjoyed reading your website posts. I have been googling blogs and sites in related manner recently and i have to state you have a nice
    Electrolyte Analyzer

  10. Very intersting post…. I enjoyed reading your informative article and considering the points ALOKA UST-5546

  11. Quite interesting. LOL. thank you for your sharing
    Backing up data in advance is really important. Or you would have to use
    windows vista data recovery for help, which is really troublesome.

  12. Thanks for the nice blog. It was very useful for me. I'm happy I found this blog. Thank you for sharing with us,I too always learn something new from your post.

  13. Nice post. I learn something more challenging on different blogs everyday. It will always be stimulating to read content from other writers and practice a little something from their store. I’d prefer to use some with the content on my blog whether you don’t mind. Natually I’ll give you a link on your web blog. Thanks for sharing.
    cara mengobati infeksi saluran kemih
    cara mengobati anyang anyangan pada wanita

  14. Wow that's a wonderfull blog having all details & helpful. UK Power Cord

  15. شركة مكافحة الصراصير بالرياض شركة مكافحة حشرات بالرياض
    شركة رش مبيدات بالرياض شركة رش مبيدات بالرياض
    شركة مكافحة حشرات بالرياض شركة مكافحة حشرات بالرياض
    شركة عزل الاسطح بالرياض شركة عزل الاسطح بالرياض
    شركة تنظيف بالبخار بالرياض شركة رش مبيدات بالرياض
    افضل شركة كشف تسربات المياه بالرياض افضل شركة كشف تسربات المياه بالرياض
    افضل شركة كشف تسربات المياه بالرياض افضل شركة كشف تسربات المياه بالرياض

  16. شركة نقل اثاث بمكة شركة نقل اثاث بمكة
    شركة نقل اثاث بمكة شركة نقل اثاث بمكة
    شركة نقل اثاث بجدة شركة نقل اثاث بجدة
    شركة نقل اثاث بمكة شركة نقل اثاث بمكة
    شركة نقل اثاث بجدة شركة نقل اثاث بجدة
    شركة نقل اثاث بجدة شركة نقل اثاث بجدة
    شركة نقل اثاث بمكة شركة نقل اثاث بمكة

  17. A good article, we have an application project that is in development for people who need to know where to find products, users can share their opinions about medicines and much more, more information at

  18. <a href=""

  19. توفر الشركة لعملاؤها الكرام الكثير من خيارات و برامج عمليات تنظيف المنازل
    شركة تنظيف منازل بالجبيل
    وخبرتنا العملية و استطلاعنا الدائم لسوق خدمات تنظيف الشقق يؤكد لكم عملاؤنا الكرام انكم حتما ستجدون ما يناسب
    احتياجاتكم ضمن شرائحنا المختلفة والمتعددة المصممة خصيصا لتلبى مختلف احتياجاتكم فى اعمال تنظيف المنازل بالجبيل
    تنظيف المنازل بالقطيف انتشر بكثرة بين الناس لضمان الحصول على افضل اسعار تنظيف الشقق ذلك لأن شركات التنظيف لديها من
    العمالة ما يكفي لأنجاز المهام فى اقل مدة زمنية، ايضاَ كل شركة تنظيف من المفروض ان يتوفر بها ماكينات تنظيف مخصصة فى
    تنظيف الفلل و تنظيف القصور ونظافة المنازل وكل ماكينة تنظيف تقوم بمهام معينة يصعب على ربة المنزل القيام بها بمفردها
    مثل تنظيف القماش و لهذا يفضل إسناد المهمة إلي افضل شركة تنظيف منازل بالقطيف شركة تاج الافضل دائما 0551844053
    شركة تنظيف بالجبيل
    شركة تنظيف سجاد بالجبيل
    شركة تنظيف شقق بالجبيل
    شركة تنظيف فلل بالجبيل
    شركة تنظيف مجالس بالجبيل
    شركة تنظيف منازل بالقطيف
    شركة تنظيف مجالس بالقطيف
    شركة تنظيف سجاد بالقطيف
    شركة تنظيف شقق بالقطيف

  20. I love the way you have created the post, it's a page that has a very interesting post regarding total lunar eclipse. This is very nice to read, interesting to follow up and very informative. To keep creating this kind of information, you can get the best help with writing a research proposal at our firm. You can reach out to us for the best writing assistance. Get the best Research Proposal Writing Services you can trust.