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(); } } }