LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read rotation sensor

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.

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

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.

0 Kudos
Message 2 of 5
(2,705 Views)

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? 

0 Kudos
Message 3 of 5
(2,702 Views)

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?

0 Kudos
Message 4 of 5
(2,699 Views)

Link to duplicate post on the Lego Minstorms NXT for Education page.

Tori
Student
0 Kudos
Message 5 of 5
(2,673 Views)