LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

delay on the program

Solved!
Go to solution

when it gets the value i want, the program stops but the robot keeps going for a second and then stops completely, how to get rid of that delay?

0 Kudos
Message 1 of 4
(2,672 Views)

or something to make the motors stop right away as soon the program ends

0 Kudos
Message 2 of 4
(2,667 Views)
Solution
Accepted by topic author SeemsLegit

Hello,

 

The image you've attached doesn't provide much to go off of, but it appears that you may be using LabVIEW for Lego Mindstorms.  If that is the case, I'd recommend posting on the Mindstorms-specific forum here:

 

LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

http://forums.ni.com/t5/LabVIEW-for-LEGO-MINDSTORMS-and/bd-p/460

 

Providing the VI you're using rather than an image of the block diagram will allow people to offer better advice.  It appears that your VI is built to stop when the sonar function returns exactly "40", however there is no way to discern what your program will do when this happens from the screen capture you provided due to the hidden subdiagram within the case structure.  Try posting the code you've written as well as a clear description of what the current behavior of your robot is and what you want it to do. 

 

Regards,

Tom L.
0 Kudos
Message 3 of 4
(2,647 Views)

i found the solution already..thanks anyways for the info i need to provide and everything for later posts

0 Kudos
Message 4 of 4
(2,641 Views)