Take the 2-minute tour ×
LEGO® Answers is a question and answer site for LEGO® and building block enthusiasts. It's 100% free, no registration required.

I am using LEGO NXT 2.0 with the native NXT flowchart-style programming environment, I would love to be able to poll the sensors more frequently. (In particular, it seems that the light sensor is polled very infrequently, only about once or twice per second, and this limits the speed of a line-following robot I can build)

Is there a way to change the LEGO NXT sensor polling frequency using the LEGO software?

I am looking for a way to do this using the LEGO software, I realize that there is a way using MS robotics.

share|improve this question

1 Answer 1

Most sensors have the capability of sending you notifications or updates as the value of their sensor changes. This is accomplished by repeatedly contacting the NXT brick and querying the sensor. The polling frequency allows you to configure for each sensor how often this is done.

In most cases, you may leave this value set to 0, which indicates the default polling frequency. However, there may be times when you wish to get sensor reading back from one sensor more often. In this case, you can adjust the polling frequency, which is specified in milliseconds (1/1000 second).

from Device Services: Microsoft Robotics on msdn

The article goes on to suggest the range within which this can be effective.

share|improve this answer
1  
But that's using Microsoft Robotics, not the native NXT programming environment, right? –  Joubarc Mar 14 '13 at 13:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.