private StimulusResponseResult CreateSR() { var result = new StimulusResponseResult() { ID = "T01", Index = 0, Name = "Stimulus-Response", Conditioned = false, Data = new List <CPAR.Core.Result.DataPoint>() { new Result.DataPoint() { conditioning = 0, stimulating = 0, VAS = 0 }, new Result.DataPoint() { conditioning = 0, stimulating = 10, VAS = 1 }, new Result.DataPoint() { conditioning = 0, stimulating = 20, VAS = 2 }, new Result.DataPoint() { conditioning = 0, stimulating = 30, VAS = 3 }, new Result.DataPoint() { conditioning = 0, stimulating = 40, VAS = 4 }, new Result.DataPoint() { conditioning = 0, stimulating = 50, VAS = 5 }, new Result.DataPoint() { conditioning = 0, stimulating = 60, VAS = 6 }, new Result.DataPoint() { conditioning = 0, stimulating = 70, VAS = 7 }, new Result.DataPoint() { conditioning = 0, stimulating = 80, VAS = 8 }, new Result.DataPoint() { conditioning = 0, stimulating = 90, VAS = 9 }, new Result.DataPoint() { conditioning = 0, stimulating = 100, VAS = 10 } }, VAS_PDT = 2 }; return(result); }
protected override bool StartTest() { bool retValue = false; try { var program01 = CPARDevice.CreateRampProgram(PrimaryChannel, DELTA_PRESSURE, PRESSURE_LIMIT); var program02 = SECOND_CUFF ? CPARDevice.CreateRampProgram(SecondaryChannel, DELTA_PRESSURE, PRESSURE_LIMIT) : CPARDevice.CreateEmptyProgram(SecondaryChannel); DeviceManager.Execute(program01); DeviceManager.Execute(program02); StartDevice(GetStopCriterion()); result = new StimulusResponseResult() { Name = Name, ID = ID, Index = Index, Conditioned = false, VAS_PDT = VAS_PDT }; initializing = true; retValue = true; } catch (Exception e) { Log.Debug(e.Message); } return(retValue); }
private StimulusResponseResult CreateSR_Result() { var result = new StimulusResponseResult() { Conditioned = false, VAS_PDT = 0.1, ID = "T01", Name = "Test 1" }; return(result); }
private void AddData(StimulusResponseResult result) { result.Add(0, 0, 0); result.Add(1, 0, 0); result.Add(2, 0, 0); result.Add(3, 0, 1); result.Add(4, 0, 2); result.Add(5, 0, 3); result.Add(6, 0, 4); result.Add(7, 0, 5); result.Add(8, 0, 6); result.Add(9, 0, 7); result.Add(10, 0, 8); result.Add(11, 0, 9); result.Add(12, 0, 10); }