02-02-2011 07:10 AM
I used the sample code "move forward time.vi" to test my tetrix robot motors (it has two motors - one left, one right). The motors ran for about 3 seconds as the wait VI says. When I then change the number of seconds in the Wait_Num.vi to some higher number (to make the motors run longer) the motors still run for only 2 or 3 seconds and then shut off. Watching the program run in highlight execution mode, I can see that the motors turn off well before the code moves past the Wait_Num.vi.
I change ONLY the number of seconds in the Wait_Num.vi. (That's all, nothing else.)
The watch dog is in his wait loop.
So how do I make the motor run longer?
02-04-2011 12:15 AM
Hey Hemlockmark,
You are referring to the NXT functions, correct? Could you post a snapshot of your sample example. Also I would recommend for you to use probes and breakpoints to figure out what the error is or what is causing it to stop.
Regards,
A. Zaatari