Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: May 19, 2008


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Biomedical Application: Multisim Simulation with an ECG Amplifier

4 ratings | 5.00 out of 5
Print

Overview

This example program which include NI Multisim and NI LabVIEW is one in a series which showcases the power of using advanced LabVIEW instruments within the simulation environment.

All instruments are based upon a virtual instrument template found in the Multisim sample folder. Any LabVIEW user can easily take this template and define an instrument which can input complex signals, or visualize simulation data within Multisim.

This level of advanced design flexibility is only available to the professional design engineer with the National Instruments platform of Multisim and LabVIEW.

Please Note

SPICE simulation, the language by which Multisim emulates circuit design behavior, does not run in real-time. This means that if a real-world signal is acquired by a LabVIEW instrument it cannot be directly injected into simulation, since the measurements will be running at different rates (real time vs. simulated time).

 

Purpose Of This Instrument

In the growing world of Biomedical engineering, the need to be able to quickly design circuitry which interfaces to a human signal is a common design problem. An amplifier for example can be designed in a circuit simulation package, however the signals which will interface to that particular circuit will be simple simulation stimuli (such as a sine wave, square wave etc...). To truly test a biomedical amplifier, you need to be able to interface the design to a real signal.

Using this unique LabVIEW instrument you are able to define a human electrocardiogram (ECG) signal, and have amplify it through a circuit created in Multisim.


[+] Enlarge Image

 

This LabVIEW instrument, built custom for NI Multisim produces a raw electrode ECG waveform. Since this instrument is built in LabVIEW we have a number of analysis, and signal altering functions available to us. In this case we are able to add common mode voltage, as well as noise components to alter the signal to improve the test and validation of our circuit.

 

Installation Instruction

Download the archived file to the desktop. You simply need to:

  1. Close NI Multisim if open.
  2. Open the attached 5925_ECG Amplifier.zip file.
  3. Select My Computer.
  4. Browse to C:\Program Files\National Instruments\Circuit Design Suite 10.1\lvinstruments.
  5. Save the ECG Electrode.llb file from the zip file to this folder.

 

Instrument Features

The ECG Electrode program consists of 2 main controls, the Common Mode Voltage and Frequency Content. Both of these inputs can be changed to change the values, and alter (common mode voltage) or apply noise components (frequency content) to the signal which is being sent to a circuit.

 

Using the Instrument and Example Circuit

This instrument will use the example circuit that is in the attached 5925_ECG Amplifier.zip file folder.

  1. Open Multisim by selecting Start > All Programs > National Instruments > Circuit Design Suite 10.1 > Multisim 10.1.
  2. Go to File > Open.
  3. Browse to the ECG Amp with ECG Signals.ms10 file from the 5925_ECG Amplifier.zip file.
  4. You will see a complete amplifier based upon two common Op-Amps.
  5. In Multisim select the LabVIEW icon in the instrument toolbar (as seen below).
  6. Select ECG Signals. This is the name of the ECG Electrode instrument (as seen below).


[+] Enlarge Image

 

  1. Place the instrument onto the schematic as seen below, and connect it to the V_BODY_N and V_BODY_P wires.
  2. The circuit is now complete.


[+] Enlarge Image

 

  1. Double-click on the XLV1 instrument (the ECG electrode stimulus)
  2. Set the Common Mode Voltage to 4.7
  3. Set the Frequency Content to 8.

 

  1. You are now ready to begin simulating the circuit.
  2. Click on the run button on the simulation toolbar.

  1. Double-click on the oscilloscope instrument (XSC1) in the bottom right-hand corner of the screen.
  2. You will see the red ECG signal waveform from the Raw ECG Electrodes be amplified by the amplification circuit.
  3. Stop the simulation (by selecting the stop button in the simulation toolbar).
  4. Change the Common Mode Voltage to any value.
  5. Run the simulation and view the change in the ECG signal in the oscilloscope.


[+] Enlarge Image

 

Requirements


Filename: 5925_ecg_amplifier.zip

Software Requirements


Language(s): LabVIEW

 
4 ratings | 5.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).