Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Disable.vi (http://www.chiefdelphi.com/forums/showthread.php?t=101566)

Sarah2542 30-01-2012 19:10

Disable.vi
 
I just finished most of my team's program for driving and for the motor on our shooter to shoot the basketballs (in LabVIEW). I have the begin.vi, the finish.vi, and the teleop.vi done. I am working on the disable.vi right now. I know how to code the disabled for the drive motors (by wiring a constant 0 to the x and y axes of the holonomic drive vi) but I am not sure how to wire the other motor (I got it from the actuator panel from the WPI library) to set it for disabled. I know it doesn't have axis inputs and I don't think wiring it to "closed" for disabled mode will work. Anyone have any ideas?

Thanks, and have a great build season! :]

tilky 10-02-2012 07:00

Re: Disable.vi
 
we don't do anything with that vi on our team, are you sure you need to modify it?

Mark McLeod 10-02-2012 09:29

Re: Disable.vi
 
Use the Set Output from the same motor palette and wire in a zero.

Any motor that might possibly have been moving at the moment when the robot was Disable should be set to neutral.
The reason is that you might come out of the Disabled state doing something different than when you entered Disabled, e.g., switch to Autonomous from Teleop, or switch to Teleop from Autonomous, or restart Autonomous.
If Teleop last had an arm motor moving up when you disabled, then if you don't set it to neutral in Disabled.vi and switch over to test autonomous, but autonomous doesn't use the arm until later, the arm will immediately continue moving upwards on it's own. The motor will continue executing the last output it was told.


All times are GMT -5. The time now is 11:38.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi