示例#1
0
        protected override bool StartTest()
        {
            bool retValue             = true;
            var  conditioningPressure = COND_PRESSURE.Calculate();

            try
            {
                DeviceManager.Execute(CPARDevice.CreateDelayedRampProgram(0, DELTA_COND_PRESSURE, conditioningPressure, DELTA_PRESSURE, PRESSURE_LIMIT));
                DeviceManager.Execute(CPARDevice.CreateConditioningProgram(1, DELTA_COND_PRESSURE, conditioningPressure, DELTA_PRESSURE, PRESSURE_LIMIT));
                StartDevice(GetStopCriterion());

                result = new ConditionedPainResult()
                {
                    Name        = Name,
                    ID          = ID,
                    Index       = Index,
                    Conditioned = true,
                    NominalConditioningPressure = conditioningPressure,
                    VAS_PDT = VAS_PDT
                };

                initializing = true;
                retValue     = true;
            } catch (Exception e)
            {
                Log.Debug(e.Message);
            }

            return(retValue);
        }
示例#2
0
        protected override void InitializeChart()
        {
            var conditioningPressure = COND_PRESSURE.Calculate();

            Visualizer.Pmax           = conditioningPressure > PRESSURE_LIMIT ? conditioningPressure : PRESSURE_LIMIT;
            Visualizer.Tmax           = conditioningPressure / DELTA_COND_PRESSURE + PRESSURE_LIMIT / DELTA_PRESSURE;
            Visualizer.Conditioning   = true;
            Visualizer.SecondCuff     = false;
            Visualizer.PrimaryChannel = 1;
        }