04-01-2012 09:46 AM
I want to measure the rotation made by port A and port B on the following example. What to know whether its going X or Y or -X or - Y against time. Also I want to measure totol rotation made by the motor to calculate the distance. I want robot to write these mesurements in its memory.
04-01-2012 10:56 AM
You need to post this question on the LabVIEW for LEGO MINDSTORMS and LabVIEW for Education forum. We don't know what you are referring to when you talk about port A and port B.
By the way, you have serious problems with how your code executes. Your outer while loop will only run 1 time. Why? Because the inner while loop has a False wired to its stop condition terminal which means it will run forever. The outer while loop can't iterate again until the inner for loop ends, which will never happen. The only way this code will stop is to abort it.
04-01-2012 11:10 AM
The port A and B are for the motors. This is not my actual program. I developed a code to solve a maze. My actuall program have a start and end condition. I want the the read rotation sensor to take readings until the end of the exploration. I dont know how to link the rotation sensor to my program. If you can please tell me where the rotation sensor goes in the mail look? And also does this rotation sensor need any loop?
04-01-2012 11:35 AM
The rotation sensor you are speaking of is part of the NXT robotics kit. That is why you need to post your question in that forum. The people hanging out in that board will be familiar with your situation. 99.9% of the people who frequent this board don't know anything about that system, so it is very unlikely you can get an help.
For instance your question about "rotation sensor in the mail" makes no sense. What "mail" are you talking about, e-mail?
04-04-2012 05:55 AM
Link to duplicate post on the Lego Minstorms NXT for Education page.