public void Initialize()
 {
     lin = LinearMotor.GetInstance();
     bool foundone = lin.ScanConnect();
     if (!foundone) Assert.Inconclusive("Can't connect to the linear stage.");
     lin.testmode = true;
     lin.SetMotorPower(1);
 }