LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

motors stop even though watch dog is in while loop

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?

0 Kudos
Message 1 of 2
(5,474 Views)

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

National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(5,464 Views)