public StepperMotorUserControl()
 {
     InitializeComponent();
     m_stepperMotor = new StepperMotor();
     if (fullStepRadioButton.Checked)
     {
         m_stepperMotor.SteppingMode = StepperSteppingMode.FULL;
     }
     else
     {
         if (halfStepRadioButton.Checked)
         {
             m_stepperMotor.SteppingMode = StepperSteppingMode.HALF;
         }
     }
     if (stepperDirectionSwitch.Value == true)
     {
         m_stepperMotor.Direction = StepperDirection.UP;
     }
     else
     {
         m_stepperMotor.Direction = StepperDirection.DOWN;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 public SBJController()
 {
     m_stepperMotor = new StepperMotor();
     m_electroMagnet = new ElectroMagnet();
     m_amplifier = new Amplifier();
     m_sourceMeter = new SourceMeter();
     m_daqController = new DataAcquisitionController();
     m_quitJunctionOpenningOperation = false;
     m_quitJunctionClosingOperation = false;
     m_LockIn = new LockIn();
     m_lambdaZup = new LambdaZup();
     InitializeComponents();
 }