// functions to controll direction of the motor
 public void BackwardX()
 {
     USBControler.DConfigBit(PortAux1, 0, PortDirection);
     USBControler.DBitOut(PortAux1, 0, HighLogicState);
     USBControler.DConfigBit(PortAux2, 1, PortDirection);
     USBControler.DBitOut(PortAux2, 1, LowLogicState);
     USBControler.AOut(XChannel, MccDaq.Range.Bip10Volts, XMotorControlerFreq);
 }