A system of detection for ECG signal based on virtual instrument and LabVIEW is introduced.The conception of virtual instrument,ECG amplifier data acquisition(DAQ) and the data procession software are expounded.The system has the function of real-time displaying the ECG,data acquisition and Heart Rate Variability(HRV) analysis.