02-13-2012 04:14 PM
I have a very simple program, that reads the distance from the Sonar-sensor. If the distance is above 20 cm, the motors A and B will turn backwards until the distance is above 20 cm.
This works just fine in debugging-mode, but not when the program is targeted to the NXT itself. I think this has to be something about sampletimes? I can add a Wait for 200 ms" and its get bettet. But there must be some kind of documentation about this?
Any thoughts is appriciated.
Regards, Alex.
02-15-2012 02:54 AM
Hi Alex
It should not be nessasary with a wait function.
Could you please check if the following example program works on your device:
Help --> Find examples --> Directory Structure --> NXT Robotics --> Motors --> Case_Structure_Motor_Control.vit
It has approximately the same structure as your application.
Best Regards,
Anders Rohde
Applications Engineer
National Instruments Denmark
02-15-2012 01:21 PM
Hi Anders.
Thank you for your reply.
The example program works just fine. It could seems like the Read Sonar is different than the other Read sensor? I found another guy with the exact same problem:
Regards, Alex.
02-20-2012 03:46 PM
Anyone?
02-23-2012 08:11 AM
Hi Alex
What version of the NXT module are you running?
02-25-2012 01:39 PM
I'm using LabVIEW 2011 with the LabVIEW NXT Module 2011.
Downloaded from: