Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
test-and-measurement:analog-discovery-studio:ecg-demo:start [2021/05/14 23:05] – ↷ Page moved from reference:test-and-measurement:analog-discovery-studio:ecg-demo:start to test-and-measurement:analog-discovery-studio:ecg-demo:start Arthur Browntest-and-measurement:analog-discovery-studio:ecg-demo:start [2022/10/04 11:38] (current) – external edit 127.0.0.1
Line 13: Line 13:
 === Software === === Software ===
 <WRAP group> <WRAP group>
-  * A computer with the latest version of [[reference:software:waveforms:waveforms-3:start|]] and [[https://www.ni.com/ro-ro/shop/labview/select-edition/labview-community-edition.html/|LabVIEW Community]] installed +  * A computer with the latest version of [[software:waveforms:waveforms-3:start]] and [[https://www.ni.com/ro-ro/shop/labview/select-edition/labview-community-edition.html/|LabVIEW Community]] installed 
-  * WaveForms VIs (check this guide: [[reference:test-and-measurement:guides:getting-started-with-labview]])+  * WaveForms VIs (check this guide: [[test-and-measurement:guides:getting-started-with-labview]])
   * [[https://www.ni.com/en-us/support/downloads/software-products/download.labview-biomedical-toolkit.html|Biomedical Toolkit]] and [[https://www.ni.com/en-us/support/downloads/software-products/download.labview-advanced-signal-processing-toolkit.html#346230|Advanced Signal Processing Toolkit]]   * [[https://www.ni.com/en-us/support/downloads/software-products/download.labview-biomedical-toolkit.html|Biomedical Toolkit]] and [[https://www.ni.com/en-us/support/downloads/software-products/download.labview-advanced-signal-processing-toolkit.html#346230|Advanced Signal Processing Toolkit]]
   * {{ reference:test-and-measurement:analog-discovery-studio:ecg-demo:ecg_vi.zip |ECG VI}}   * {{ reference:test-and-measurement:analog-discovery-studio:ecg-demo:ecg_vi.zip |ECG VI}}
Line 21: Line 21:
 === Hardware === === Hardware ===
 <WRAP group> <WRAP group>
-  * [[https://store.digilentinc.com/analog-discovery-studio-a-portable-circuits-laboratory-for-every-student/|Analog Discovery Studio]] with Breadboard Canvas and MTE cables +  * [[https://digilent.com/shop/analog-discovery-studio-a-portable-circuits-laboratory-for-every-student/|Analog Discovery Studio]] with Breadboard Canvas and MTE cables 
-  * Analog parts and wires (all found in the [[https://store.digilentinc.com/analog-parts-kit-by-analog-devices-companion-parts-kit-for-the-analog-discovery/|Analog Parts Kit]])+  * Analog parts and wires (all found in the [[https://digilent.com/shop/analog-parts-kit-by-analog-devices-companion-parts-kit-for-the-analog-discovery/|Analog Parts Kit]])
     * 1 x [[https://www.analog.com/media/en/technical-documentation/data-sheets/OP282_482.pdf|OP 482 quad operational amplifier]]     * 1 x [[https://www.analog.com/media/en/technical-documentation/data-sheets/OP282_482.pdf|OP 482 quad operational amplifier]]
     * 2 x [[https://www.vishay.com/docs/85622/1n914.pdf|1N914 diode]]     * 2 x [[https://www.vishay.com/docs/85622/1n914.pdf|1N914 diode]]
Line 117: Line 117:
 === Postprocessing === === Postprocessing ===
 <WRAP group><WRAP column half> <WRAP group><WRAP column half>
-The acquired signal is still as noisy as seen on the //Oscilloscope// in WaveForms, so it needs filtering. After the DC component is estimated and subtracted from the signal to remove any offset (there might remained some after the decoupling), the data enters a moving average filter, its parameters depending on the utility frequency. This filter eliminates almost completely the 50 Hz or 60 Hz component in the power spectrum, as well as its harmonics. The exiting signal is smoothed. As it can be seen on the power spectrum at [[reference:test-and-measurement:analog-discovery-studio:ecg-demo:start#circuit_setup|Circuit Setup]], the most significant components of the signal are below 50 Hz, so filtering out everything above that should not damage the useful signal. However, as the QRS wave (the high amplitude part of the ECG signal) has a rise time of around 15 ms, a 25 Hz threshold should be considered, the cutoff frequency of the low-pass filter becoming 75 Hz.+The acquired signal is still as noisy as seen on the //Oscilloscope// in WaveForms, so it needs filtering. After the DC component is estimated and subtracted from the signal to remove any offset (there might remained some after the decoupling), the data enters a moving average filter, its parameters depending on the utility frequency. This filter eliminates almost completely the 50 Hz or 60 Hz component in the power spectrum, as well as its harmonics. The exiting signal is smoothed. As it can be seen on the power spectrum at [[test-and-measurement:analog-discovery-studio:ecg-demo:start#circuit_setup|Circuit Setup]], the most significant components of the signal are below 50 Hz, so filtering out everything above that should not damage the useful signal. However, as the QRS wave (the high amplitude part of the ECG signal) has a rise time of around 15 ms, a 25 Hz threshold should be considered, the cutoff frequency of the low-pass filter becoming 75 Hz.
  
 After proper filtering, the maximum point of the data set is acquired and, with a peak detector, all the data points above 75% of this maximum and 10 ms wide are found (the P - preceding QRS - and T - proceeding QRS - signals of the should not reach that amplitude). The location of these points are multiplied with the time derivative of the signal and summed with the starting time to get the exact time of each peak. Time between two consecutive peaks is calculated and converted to frequency, then multiplied with 60 to get the number of beats (peaks) per minute. After proper filtering, the maximum point of the data set is acquired and, with a peak detector, all the data points above 75% of this maximum and 10 ms wide are found (the P - preceding QRS - and T - proceeding QRS - signals of the should not reach that amplitude). The location of these points are multiplied with the time derivative of the signal and summed with the starting time to get the exact time of each peak. Time between two consecutive peaks is calculated and converted to frequency, then multiplied with 60 to get the number of beats (peaks) per minute.
Line 163: Line 163:
  
 ===== Final Notes ===== ===== Final Notes =====
-For more guides and example projects for your Analog Discovery Studio, please visit its [[reference:test-and-measurement:analog-discovery-studio:start|Resource Center]].+For more guides and example projects for your Analog Discovery Studio, please visit its [[test-and-measurement:analog-discovery-studio:start|Resource Center]].
  
-For more information about how to use the software featured in this demo, please visit its respective guide: [[reference:test-and-measurement:guides:getting-started-with-labview]].+For more information about how to use the software featured in this demo, please visit its respective guide: [[test-and-measurement:guides:getting-started-with-labview]].
  
 For technical support, please visit the [[https://forum.digilentinc.com|Digilent Forums]]. For technical support, please visit the [[https://forum.digilentinc.com|Digilent Forums]].
  
 {{tag>project analog-discovery-studio}} {{tag>project analog-discovery-studio}}