示例#1
0
        public void onStartOutput()
        {
            channel1OutputWaveform = channel1Waveform;
            channel2OutputWaveform = channel2Waveform;

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

            bool result = false;

            if (MainForm.Instance.PPGChannel2Supported)
            {
                result = AECG100.OutputPPGEx(ref channel1OutputWaveform, ref channel2OutputWaveform, outputChannel1CB, outputChannel2CB);
            }
            else
            {
                result = AECG100.OutputPPG(PPGChannel.Channel1, ref channel1OutputWaveform, outputChannel1CB);
            }

            if (result)
            {
                MainForm.Instance.OutputStarted();
            }
            else
            {
                MessageBox.Show("Error: output waveform failed", "WhaleTeq", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
示例#2
0
        private void SyncConfig()
        {
            PPG_WAVEFORM ppg = channel1Waveform;

            comboChannel1Waveform.SelectedIndex = ppg.WaveformType;
            numChannel1PI.Value     = (decimal)(ppg.VolSP / channel1Waveform.VolDC * 100);
            numChannel1VolDC.Value  = (decimal)ppg.VolDC;
            numChannel1VolSP.Value  = (decimal)ppg.VolSP;
            numChannel1VolDN.Value  = (decimal)ppg.VolDN;
            numChannel1VolDP.Value  = (decimal)ppg.VolDP;
            numChannel1TimeSP.Value = (decimal)ppg.TimeSP;
            numChannel1TimeDN.Value = (decimal)ppg.TimeDN;
            numChannel1TimeDP.Value = (decimal)ppg.TimeDP;

            ppg = channel2Waveform;
            comboChannel2Waveform.SelectedIndex = ppg.WaveformType;
            numChannel2PI.Value     = (decimal)(ppg.VolSP / channel1Waveform.VolDC * 100);
            numChannel2VolDC.Value  = (decimal)ppg.VolDC;
            numChannel2VolSP.Value  = (decimal)ppg.VolSP;
            numChannel2VolDN.Value  = (decimal)ppg.VolDN;
            numChannel2VolDP.Value  = (decimal)ppg.VolDP;
            numChannel2TimeSP.Value = (decimal)ppg.TimeSP;
            numChannel2TimeDN.Value = (decimal)ppg.TimeDN;
            numChannel2TimeDP.Value = (decimal)ppg.TimeDP;
        }
示例#3
0
        public PPGPage()
        {
            InitializeComponent();

            channel1Waveform = UtilConfig.GetPPGChannel1WaveformDefault();
            channel2Waveform = UtilConfig.GetPPGChannel2WaveformDefault();

            outputChannel1CB = new OutputSignalCallback(AECGOutputChannel1Callback);
            outputChannel2CB = new OutputSignalCallback(AECGOutputChannel2Callback);

            SyncConfig();
        }
示例#4
0
        public PWVPage()
        {
            InitializeComponent();

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

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

            checkPPGLockAC.Checked = true;
        }
示例#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);
            }
        }
示例#6
0
        public static PPG_WAVEFORM GetPPGChannel1WaveformDefault()
        {
            PPG_WAVEFORM waveform = new PPG_WAVEFORM();

            waveform.WaveformType    = (int)PPGWaveformType.PPG;
            waveform.Frequency       = 1;
            waveform.VolDC           = 625.0;
            waveform.VolSP           = 12.5;
            waveform.VolDN           = 7.0;
            waveform.VolDP           = 8.0;
            waveform.TimePeriod      = 1000;
            waveform.TimeSP          = 150;
            waveform.TimeDN          = 360;
            waveform.TimeDP          = 460;
            waveform.SyncPulse       = (int)SyncPulse.Sync;
            waveform.Inverted        = 0;
            waveform.NoiseAmplitude  = 0;
            waveform.NoiseFrequency  = (int)PPGNoiseFrequency.Off;
            waveform.RespirationRate = 0.0;
            waveform.RespirationSize = 0.0;
            return(waveform);
        }