コード例 #1
0
        public bool UpdateEyeStatus(bool status)
        {
            if (status)
            {
                EYES.Value = 133;
            }
            System.Threading.Thread.Sleep(100);
            var i = Manikin.GetParameterModelEnum("Laerdal.Response.Eyes.EyelidStatus");

            return(EYES.Value == 133);
        }
コード例 #2
0
        /// <summary>
        /// Sets up the parameters
        /// </summary>
        public void SetupParameters()
        {
            // Initialize parameters
            PauseEvent    = Manikin.GetParameterAppEventBool("Pause Simulation");
            StartEvent    = Manikin.GetParameterAppEventBool("Start Simulation");
            PulseOximeter = Manikin.GetParameterAppValue <int>("PulseOximeter");

            etCO2_Value_mmHg = Manikin.GetParameterAppValue <double>("Laerdal.Response.etCO2.Value_mmHg");
            TBlood_Celcius   = Manikin.GetParameterAppValue <double>("Laerdal.Response.Temp.TBlood_Celcius");
            TPeri_Celcius    = Manikin.GetParameterAppValue <double>("Laerdal.Response.Temp.TPeri_Celcius");

            heartRate            = Manikin.GetParameterModelDouble("heartRate");
            EYES                 = Manikin.GetParameterModelEnum("overrideSoundLeftUpperLobeAnteriorLungs");;
            Diastolic_mmHg       = Manikin.GetParameterAppValue <int>("Laerdal.Response.BloodPressure.Diastolic_mmHg");
            Systolic_mmHg        = Manikin.GetParameterAppValue <int>("Laerdal.Response.BloodPressure.Systolic_mmHg");
            Value_LiterPerMinute = Manikin.GetParameterAppValue <double>("Laerdal.Response.CardiacOutput.Value_LiterPerMinute");

            SVLeftLowerPosteriorLungs  = Manikin.GetParameterModelInteger("soundVolumeLeftLowerLobePosteriorLungs");
            SVLeftLowerAnteriorLungs   = Manikin.GetParameterModelInteger("soundVolumeLeftLowerLobeAnteriorLungs");
            SVRightLowerPosteriorLungs = Manikin.GetParameterModelInteger("soundVolumeRightLowerLobePosteriorLungs");
            SVRightLowerAnteriorLungs  = Manikin.GetParameterModelInteger("soundVolumeRightLowerLobeAnteriorLungs");
            SVRightUpperPosteriorLungs = Manikin.GetParameterModelInteger("soundVolumeRightUpperLobePosteriorLungs");

            overrideHeartRate = Manikin.GetParameterModelDouble("override HeartRate");


            RespiratoryRate          = Manikin.GetParameterModelDouble("override RespiratoryRate");
            LeftUpperAnteriorLungs   = Manikin.GetParameterModelEnum("overrideSoundLeftUpperLobeAnteriorLungs");
            LeftUpperPosteriorLungs  = Manikin.GetParameterModelEnum("overrideSoundLeftUpperLobePosteriorLungs");
            RightUpperAnteriorLungs  = Manikin.GetParameterModelEnum("overrideSoundRightUpperLobeAnteriorLungs");
            RightUpperPosteriorLungs = Manikin.GetParameterModelEnum("overrideSoundRightUpperLobePosteriorLungs");


            PCWP         = Manikin.GetParameterModelDouble("override PCWP");
            PAPSystolic  = Manikin.GetParameterModelDouble("override PAPSystolic");
            PAPDiastolic = Manikin.GetParameterModelDouble("override PAPDiastolic");
            CVP          = Manikin.GetParameterModelDouble("override CVP");

            updateTimer = new System.Threading.Timer(new System.Threading.TimerCallback(ProcessDataFromServer), this, 0, 100);

            AreParametersSetup = true;
            OnPauseEvent(null, null);
        }