FIRST Tech Challenge Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

teleop button cannot make motor work continually

Solved!
Go to solution

I just set a button to move while pressed, and generate code. When testing the program, i found that the motor can only run for about 2second, then it stops, so you need to press the button again to make it work again. How to deal with it?

0 Kudos
Message 1 of 3
(3,395 Views)
Solution
Accepted by topic author jerry_dcjx

There is a really old thread if you can find it about the motor watch dog.  This was supposed to be fixed a couple versions ago, but I still see people running into it.  Basically there is a VI that tells the motors "yes, the brick is still connected you can continue to run".  You can find this vi at "C:\Program Files (x86)\National Instruments\LabVIEW 2012\vi.lib\NXT\HiTechnic\FeedAllTETRIXWatchdogs.vi"  We put this in a parallel loop running once every second and it fixed our issues.

Hope this helps,

-Steve

4150 Mentor

0 Kudos
Message 2 of 3
(2,825 Views)

Thanks. It works.

0 Kudos
Message 3 of 3
(2,825 Views)