Go to Post FIRST is, of course, a grand social experiment in American culture - jonathan lall [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-01-2011, 07:01
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: How come endless loops don't stop the code?

This simple motor control VI is simply demonstrating how to do a quick test. You are correct that this is probably not how you want to do it on your robot. Once you enter the loop, that code will not exit the loop until its stop button is pressed. Additionally, it has no delay in the loop. Later in the PDF, it adds other components that effectively build a small RobotMain that only controls the one motor.

Greg McKaskle

Last edited by Greg McKaskle : 18-01-2011 at 07:01. Reason: spelling
Reply With Quote
  #2   Spotlight this post!  
Unread 18-01-2011, 08:20
Itamar's Avatar
Itamar Itamar is offline
Registered User
FRC #1943 (NeatTeam) & FRC #4590 (GreenBlitz)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Israel
Posts: 83
Itamar is an unknown quantity at this point
Re: How come endless loops don't stop the code?

I understand now, thank you!
Reply With Quote
  #3   Spotlight this post!  
Unread 18-01-2011, 11:55
Doug Norman's Avatar
Doug Norman Doug Norman is offline
Registered User
no team (National Instruments)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Austin, TX
Posts: 137
Doug Norman will become famous soon enoughDoug Norman will become famous soon enough
Re: How come endless loops don't stop the code?

This brings up a related question - how do I integrate example code into my robot code? The answer is on the LabVIEW Getting Started Window (View>>Getting Started Window... if you already have VIs open). Click on Tutorial 7 - Integrating Examples into Robot Code.
__________________
Doug Norman
National Instruments
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:16.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi