Example #1
0
 private espManager generateEspManager()
 {
     esp = new espManager();
     esp.motorOn(1);
     esp.motorOn(2);
     esp.motorOn(3);
     esp.setAcceleration(XAXIS, ACCELERATION);
     esp.setAcceleration(YAXIS, ACCELERATION);
     esp.setAcceleration(ZAXIS, ACCELERATION);
     esp.setDeceleration(XAXIS, ACCELERATION);
     esp.setDeceleration(YAXIS, ACCELERATION);
     esp.setDeceleration(ZAXIS, ACCELERATION);
     return(esp);
 }
Example #2
0
        public trialManager()
        {
            strainData = new List <double[]>();
            try
            {
                if (!esp.initialized)
                {
                    esp = generateEspManager();
                }
            }
            catch (NullReferenceException)
            {
                esp = generateEspManager();
            }
            esp.changeUnits(1, espManager.unitOption.millimeter);
            esp.changeUnits(2, espManager.unitOption.millimeter);
            esp.changeUnits(3, espManager.unitOption.millimeter);

            esp.motorOn(XAXIS);
            esp.motorOn(YAXIS);
            esp.motorOn(ZAXIS);
            MainWindow.errorThrownEvent += errorThrown;
        }