private void StartData() { SendMCECommand.Calibrate(); TestSubject person = new TestSubject("Me", "111", "Male", 20, markerHeightCal); dataCollection = new TightropeData(person, "Test1", 1); sound = new ALSoundEnvironment(person); SendMCECommand.SetTreadmillSpeed((float)nudSpeed.Value); }
private void StartData() { //if (CalibrateFeet() == true)//check that no exception occurred during feet calibtation { btnStartTreadmill.Text = "Stop task"; string fileID = fbdPath.SelectedPath + @"\" + txtFileName.Text; if (person.Left != null) { startTime = person.Left.CurrentMarker.TimeStamp; dataCollection = new TightropeData(person, fileID, startTime); allPositionData = new MarkerDataCollection(fileID); //wait here for WFRE/Frontfoot to be not null if (cbTestID.Text == "Sound") { sound.Left = person.Left; sound.Right = person.Right; if (cbDiscrete.Checked) { sound.FootDown = true; sound.DiscreteFootDown_On(); } else { sound.FootDown = false; } if (cbFrequency.Checked) { sound.StartSound(); } } person.NewTestFrameReceiveEvent(); SendMCECommand.SetTreadmillSpeed((float)nudSpeed.Value); timer1.Interval = testlength; timer1.Enabled = true; guiUpdate.Start(); } } }
private void StartData() { SendMCECommand.Calibrate(); file = new StreamWriter(@"D:/Test/tightrope.csv", false); dataCollection = new TightropeData(file, markerHeightCal); SendMCECommand.SetTreadmillSpeed((float)nudSpeed.Value); //feetSound.Enabled = true; plotFeet = new ZedGraphPlotForm(); plotFeet.ContinuePlotting = true; //asymmetryAnalyser.Enabled = true; }