12-22-2013 02:59 AM
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?
Solved! Go to Solution.
12-22-2013 03:02 AM
or something to make the motors stop right away as soon the program ends
12-22-2013 03:50 AM
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,
12-22-2013 04:23 AM
i found the solution already..thanks anyways for the info i need to provide and everything for later posts