Ejemplo n.º 1
0
        public static ECG_WAVEFORM GetECGWaveformDefault()
        {
            ECG_WAVEFORM waveform = new ECG_WAVEFORM();

            waveform.Frequency            = 1;
            waveform.Amplitude            = 1.0;
            waveform.TWave                = 0.2;
            waveform.PWave                = 0.2;
            waveform.STSegment            = 0;
            waveform.DCOffsetVariable     = 0;
            waveform.DCOffset             = 0;
            waveform.TimePeriod           = 1000;
            waveform.PRInterval           = 160;
            waveform.QRSDuration          = 100;
            waveform.TDuration            = 180;
            waveform.QTInterval           = 350;
            waveform.Impedance            = (int)ECGImpedanceEnable.Off;
            waveform.Electrode            = (int)Electrode.LeftArm;
            waveform.WaveformType         = (int)ECGWaveformType.ECG;
            waveform.PulseWidth           = 100;
            waveform.NoiseAmplitude       = 0.1;
            waveform.NoiseFrequency       = (int)ECGNoiseFrequency.Off;
            waveform.PacingEnabled        = 0;
            waveform.PacingAmplitude      = 2;
            waveform.PacingDuration       = 2;
            waveform.RespirationEnabled   = 0;
            waveform.RespirationAmplitude = 1;
            waveform.RespirationFrequency = 20;
            waveform.RespirationBaseline  = 1000;
            waveform.RespirationRatio     = 1;
            return(waveform);
        }
Ejemplo n.º 2
0
        public PWVPage()
        {
            InitializeComponent();

            ecgWaveform = UtilConfig.GetECGWaveformDefault();
            ppgWaveform = UtilConfig.GetPPGChannel1WaveformDefault();

            outputECGCB = new OutputSignalCallback(AECGOutputECGCallback);
            outputPPGCB = new OutputSignalCallback(AECGOutputPPGCallback);

            checkPPGLockAC.Checked = true;
        }
Ejemplo n.º 3
0
        public ECGPage()
        {
            InitializeComponent();

            ecgWaveform = UtilConfig.GetECGWaveformDefault();

            outputCB = new OutputSignalCallback(AECGOutputSignal);

            comboWaveform.SelectedIndex     = (int)ECGWaveformType.ECG;
            _radioElectrodeRightArm.Checked = (ecgWaveform.Electrode == (int)Electrode.RightArm);
            _radioElectrodeLeftArm.Checked  = (ecgWaveform.Electrode == (int)Electrode.LeftArm);
            checkImpedanceTest.Checked      = (ecgWaveform.Impedance == (int)ECGImpedanceEnable.Off);
            numDCOffset.Value             = ecgWaveform.DCOffset;
            checkDCOffsetVariable.Checked = (ecgWaveform.DCOffsetVariable != 0);
            numDCOffset.Increment         = checkDCOffsetVariable.Checked ? 5 : 300;
            ecgWaveform.Frequency         = (double)numBPM.Value / 60.0;
            ecgWaveform.TimePeriod        = (int)(60000m / numBPM.Value);
        }
Ejemplo n.º 4
0
        public void onStartOutput()
        {
            ecgOutputWaveform = ecgWaveform;

            MainForm.Instance.GraphSetYAxisScale(0, -5, 5);
            MainForm.Instance.GraphSetYAxisScale(1, -5, 5);
            OutputCounter = 0;

            bool result = AECG100.OutputECG(ref ecgOutputWaveform, outputCB);

            if (result)
            {
                MainForm.Instance.OutputStarted();
            }
            else
            {
                MessageBox.Show("Error: output waveform failed", "WhaleTeq", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Ejemplo n.º 5
0
        public void onStartOutput()
        {
            ecgOutputWaveform = ecgWaveform;
            ppgOutputWaveform = ppgWaveform;

            MainForm.Instance.GraphSetYAxisScale(0, -5, 5);
            MainForm.Instance.GraphSetYAxisScale(1, 0, 30);
            OutputCounter = 0;

            bool result = AECG100.OutputECGAndPPG((int)numTimeDiffP.Value, ref ecgOutputWaveform, ref ppgOutputWaveform, outputECGCB, outputPPGCB);

            if (result)
            {
                MainForm.Instance.OutputStarted();
            }
            else
            {
                MessageBox.Show("Error: output waveform failed", "WhaleTeq", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }