LabVIEW Biomedical Toolkit API Reference

Simulate ECG Express VI

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

Owning Palette: Biosignal DAQ & Simulation Express VIs

Requires: Biomedical Toolkit

Simulates electrocardiogram (ECG) signals.

Example

Dialog Box Options
Block Diagram Inputs
Block Diagram Outputs

Dialog Box Options

ParameterDescription
ECG SettingsSpecifies basic settings for simulating ECG signals. Contain the following options:
  • Output Options—Contains the following options:
    • Output upper limit—Specifies the upper limit of the output ECG signal, in millivolts. The default is 1.2.
    • Output lower limit—Specifies the lower limit of the output ECG signal, in millivolts. The default is -0.4.
    • White noise amplitude—Specifies the amplitude of the white noise that this express VI adds into the simulated ECG signal, in millivolts. White noise amplitude must be greater than or equal to 0. The default is 0.
    • Power noise—Specifies the amplitude and the frequency of the noise that this Express VI adds into the simulated ECG signal. This VI adds a 50 Hz noise or a 60 Hz noise to simulate the impact of alternating current.
      • Power frequency—Specifies the frequency, in hertz, of the noise that this Express VI adds into the simulated ECG signal. The default is 60.
      • Power noise amplitude—Specifies the amplitude, in millivolts, of the noise that this Express VI adds into the simulated ECG signal. Power noise amplitude must be greater than or equal to 0. The default is 0.
    • Sampling rate—Specifies the sampling rate of the simulated ECG signal, in hertz. Sampling rate must be between 10 and 1,000. The default is 512.
    • Block size—Specifies the time length of the simulated ECG signal each time this VI runs, in seconds. Block size must be less than 1920/Heart rate. The default is 3.
    • Timing mode—Specifies the timing mode that this VI uses to generate simulated ECG signals. You can select Simulate acquisition timing or Run as fast as possible. The default is Run as fast as possible.
  • Basic Settings—Contains the following options:
    • Heart rate—Specifies the heart rate of the simulated ECG signal, in beats per minute. Heart rate must be greater than 10 and less than 300. The default is 60.
    • Respiratory rate—Specifies the respiratory rate of the simulated measurement process, in breaths per minute. Respiratory rate must be greater than 0. The default is 15.
    • Standard deviation—Specifies the standard deviation of Heart Rate, in beats per minute. Standard deviation must be greater than or equal to 0. The default is 1.
  • Waveform Morphology—Contains the following options:
    • Signal type—Specifies the type of ECG signal that this VI simulates. You can select Normal, Junctional Tachycardia, Atrial Tachycardia, Ventricular Tachycardia, Atrioventricular Block, Hyperkalemia, Hypokalemia, Hypercalcemia, Hypocalcemia, and User-Defined. The default is Normal. When you set Signal type to User-Defined, you can use the Wave selection, Position, Amplitude, and Width options to customize the ECG waveform morphology.
    • Wave selection—Specifies the type of wave that you want to customize. You can select P, Q, R, S, or T. This option is available only when you set Signal type to User-Defined. The default is P.
    • Position—Specifies the peak or valley position of the wave that you specify in Wave selection. This option is available only when you set Signal type to User-Defined.
    • Amplitude—Specifies the amplitude of peak or valley of the wave that you specify in Wave selection. This option is available only when you set Signal type to User-Defined.
    • Width—Specifies the width of the wave that you specify in Wave selection. This option is available only when you set Signal type to User-Defined.
  • Preview—Displays a block of the simulated ECG signal. When you set Signal type to User Defined, a crosshair appears and indicates the type of wave that you select in Wave selection.
Advanced SettingsSpecifies advanced settings for simulating ECG signals. Contains the following options:
  • HRV Settings—Contains the following options:
    • LF position—Specifies the peak position in the low frequency (LF) band of the power spectrum of RR intervals, in hertz. LF position must be greater than 0. The default is 0.1.
    • HF position—Specifies the peak position in the high frequency (HF) band of the power spectrum of RR intervals, in hertz. HF position must be greater than 0. The default is 0.25.
    • LF/HF ratio—Specifies the ratio of peak amplitude at LF position to the peak amplitude at HF position. LF/HF ratio must be greater than or equal to 0. The default is 0.5.
    • LF standard deviation—Specifies the standard deviation of the wave whose peak is at LF position. LF standard deviation must be larger than 0. The default is 0.01.
    • HF standard deviation—Specifies the standard deviation of the wave whose peak is at HF position. HF standard deviation must be larger than 0. The default is 0.01.
  • RR Power Spectrum Preview—Displays the power spectrum of RR intervals of the simulated ECG signal.

Block Diagram Inputs

ParameterDescription
block sizeSpecifies the signal length(s) to simulate each time this VI runs.
error in (no error)Describes error conditions that occur before this node runs.
initialize?Specifies whether to initialize the ECG signal. The default is FALSE.
sampling rateSpecifies the sampling rate of the ECG signal.

Block Diagram Outputs

ParameterDescription
ECGReturns the simulated ECG signal.
error outContains error information. This output provides standard error out functionality.

Example

Refer to the Biosignal Simulator and Generator VI in the labview\examples\Biomedical\Biosignal directory for an example of using the Simulate ECG VI.

Log in to get a better experience