LabVIEW Biomedical Toolkit API Reference

Designing an ECG Feature Extractor Part 1: Reading a Logged ECG Signal from File (Biomedical Toolkit)

  • Updated2023-02-21
  • 3 minute(s) read

In Part 1 of this tutorial, you design a VI to read a logged electrocardiograph (ECG) signal from a file and then display the signal in a waveform graph.

What to Use

Use the following objects to read and view the logged ECG signal:

What to Do

Create the following block diagram to read and view a logged ECG signal.

The following list describes important details about the previous diagram:

Use the Read Biosignal Express VI to read the logged ECG signal from a file. When you add this Express VI to the block diagram, the Configure Read Biosignal dialog box appears. In the File path text box, enter the path to the file that contains the ECG signal. In this tutorial, you can use the ECG_Data_1.tdms example ECG signal in the labview\examples\Biomedical\Data directory. Click OK to apply the current configuration and close the dialog box.
Use a waveform graph to display the logged ECG signal.
Use a While Loop to continuously display the signal. Wire the EOF? output of the Read Biosignal Express VI to the conditional terminal to stop the VI when the ECG signal ends.

After you complete this part of the tutorial, you can run the VI to read a logged ECG signal from a file and then display the signal in a waveform graph.

Caveats and Recommendations

You can change the file path of the logged ECG signal from the front panel with a file path control. To add a file path control to the Read Biosignal Express VI, right-click the file path input of the Express VI and select Create»Control.

Examples

Refer to labview\examples\Biomedical\Tutorials\Designing an ECG Feature Extractor.lvproj for a completed version of the VI you create in this part of the tutorial.

Previous: Designing an ECG Feature Extractor Next: Extracting ECG Features