Quote:
Originally Posted by TylerStaudigel
What do you mean by the motor enable vi. Is it the motor set output or something in the begin category?
|
In my student's code, when a limit switch was hit, he has a true/false condition that "disable the motor" then it would "enable the motor".
What Omar is saying is inside this VI, it writes a SET Position of "0" each time this VI is called. Here is the screen shot Omar sent us to check. We will check this tonight.
Omar recommends NOT USING Motor Enable/Disable in this method because the VI write the SET POSITION in the back ground, I assume for safety reasons...it writes a set position of ZERO so the PID won't take off when the motor is enabled. You don't want a "run-a-away" motor condition on power up.