glenzac
Untitled picture

ECG sources for PSPICE, LTSPICE, TINA, Multisim

Note: This post uses a text file with ECG signal values that are a bit too ideal-looking. If you want realistic ECG signals in the desired range please use this spreadsheet tool I’ve created. (It uses ECG values from the MIT-BIH Normal Sinus Rhythm Database)

For PSPICE :

An ECG source is implemented using a Piecewise Linear source. To do this we should create a text file with the values of ECG voltages for the corresponding time. I’ve already done that. Download the text file here.

Now, in the parts library search for a VPWL_F_RE_FOREVER source. Untitled picture.png

It should look like the image on the left. Now double-click the and specify the location of the downloaded text file. e.g   D:\Downloads\ecg_source.txt

Now that’s your ECG source.Untitled picture.png

For LTSPICE :

- Method: 1

The ECG source is implemented using a Piecewise Linear source. To do this we should create a text file with the values of ECG voltages for the corresponding time. I’ve already done that. Download the text file here.

  • Place a Voltage source in the schematic
  • Right-click the voltage source and click ‘Advanced’
  • Then choose PWL FILE option and provide the address of the text file uploaded above.

- Method: 2

Use a .wav file as input to a voltage source

For TINA :

Untitled picture.png

Files :

ECG sources.tsc

Source :

https://e2e.ti.com/support/amplifiers/f/14/p/248858/871282

For Multisim:

One can either use a Labview ECG VI that is already available or a Piecewise linear source.

Comments