12-19-2015 04:36 AM
Hi guys, I'm a newbie in labview programming, or programming in general. I have one question about my code. So I wanted to perform one action in the while loop, I get out of it from the sensor signal and then I want to enter another loop but the program just exits the first one and stops. Here is the code below. So here is what it's doing. The robot goes straight until IR sensor meets an object. and progam exits the loop. And the the robot should spin 'cus the second loop turns just one motor, but it doesn't. Sorry for my english, it's not my mother tongue ;d. And the last question. I know there are lego example programs that I could learn from in Labview, I had found them last week. but I searched it all night and couldnt find it again. Do you guys know where it is?
12-19-2015 07:09 AM
12-19-2015 07:41 AM - edited 12-19-2015 07:43 AM
Thanks, You're right, it probably enters the second loop but it's not a problem with a termination case of the second loop. I think i discovered the problem but dont know how to fix. The comparison little triangle block has a red dot in the upper input(but it doesnt show an error), . In the first loop from the sensors "scaled value" comes out and it works. And in the second loop the value from ultrasonic sensors is named "centimeters". I beg for help
12-19-2015 08:23 AM
Ok, Problem solved, thanks guys, Can throw away the topic
12-21-2015 04:08 AM
Hi, Kamkaj,
can You share with us how You solved the problem at the end so if someone gets the same issue he/she can find the solution here?
Thanks