LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with automating my LEGO MINDSTORM.

Hey everyone.

 

I was given a task to automate my robot in order to perform the tasks required but I'm seem to get stuck every time I'm trying to run this program and I need someone's help to diagonise this problem.

 

Thank you guys 🙂 

0 Kudos
Message 1 of 3
(5,722 Views)

Hi FarisM,

 

Thank you for your post. What is currently happening when you run the code?

 

As the VI stands currently, once the Enter Button has been pressed on the NXT, the rest of the VI will run once. This is because although there is a case structure with multiple cases, once a single case has run, the VI will not executre the functions until the VI is run again. Are you seeing behaviour where once the enter button is pressed the VI starts then seems to do one movement and then stops? You will need to implement a while loop around the rest of your code with some timing so that your algorithm runs continously.

 

I have also linked in an introduction to labVIEW, these guides can be quite useful to use as reference: http://www.ni.com/gettingstarted/labviewbasics/

 

Best Regards,

 

 

Ben B.

Applications Engineer
National Instruments UK & Ireland

"I've looked into the reset button, the science is impossible!"
0 Kudos
Message 2 of 3
(5,714 Views)

hi;

 

i need some help for my nxt mindstorm  robot which is suppose to detect obstacles and he has to realize the color of the ball(blue or red), head it towards  and type it up to the point of gol;
we start by using the motor button and then via bth;
thank you for your response

0 Kudos
Message 3 of 3
(5,694 Views)