//Diastolic_mmHg.Value = 140; //Systolic_mmHg.Value = 90; public bool UpdateSYS_BP(int sys_mmHg) { IParameterAppValue <int> S = Manikin.GetParameterAppValue <int>("Laerdal.Response.BloodPressure.Systolic_mmHg"); checkHealth(); while (S.Value < sys_mmHg) { if (S.Value != sys_mmHg) { Systolic_mmHg.Value = sys_mmHg; System.Threading.Thread.Sleep(100); } } return(S.Value == sys_mmHg); }
public bool UpdateDIA_BP(int dia_mmHg) { IParameterAppValue <int> D = Manikin.GetParameterAppValue <int>("Laerdal.Response.BloodPressure.Diastolic_mmHg"); checkHealth(); while (D.Value < dia_mmHg) { if (D.Value != dia_mmHg) { Diastolic_mmHg.Value = dia_mmHg; System.Threading.Thread.Sleep(100); } } return(D.Value == dia_mmHg); }
/// <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); }