コード例 #1
0
        public SpindleMotor(MotorController motorController)
        {
            isSpiCon          = false;
            isSimulinkControl = false;
            SpiRPM            = 0;
            SpiDir            = true;
            RPMmax            = 2000;
            RPMmin            = 0;

            controller = motorController;
        }
コード例 #2
0
 static void SetUp()
 {
     NIDaq       = new NIDaqStrain();
     Controller  = new MotorController();
     dynomometer = new Dyno();
     Writter     = new CsvWriter(",", Dir, "Averages.csv");
     Average     = new Averager();
     Controller.ConnSpindle();
     dynomometer.DynoConnect();
     dynomometer.DynoReset();
     Thread.Sleep(500);
     String[] header1 = { "DataPoints:", DataPoints.ToString(), "SampleDelay:", SampleDelay.ToString() };
     String[] header2 = { "RPM", "Current", "Torque", "Power (Current)", "Power (Torque)" };
     Writter.WriteHeader(header1);
     Writter.WriteHeader(header2);
 }