NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
FarisM
Posts: 3
0 Kudos

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 :smileyhappy: 

Member BB.
Member
BB.
Posts: 114
0 Kudos

Re: Help with automating my LEGO MINDSTORM.

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!"
Member
chya
Posts: 7
0 Kudos

Re : Help with automating my LEGO MINDSTORM.

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

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page