Go to Post When twenty people tell you your hair is on fire, you don't need to look into a mirror to find out they're right. - IndySam [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Spotlight this post!  
Unread 02-02-2010, 16:36
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: motor controller error

Quote:
Originally Posted by apalrd View Post
I see your problem.

You are opening and closing the motor in teleop.vi
You're actually opening and closing a lot of things in Teleop. That won't cause problems with some of them, but it will definitely break most of them.

The LabVIEW examples are typically set up as an Open, fed into a While, with a Close after the While. That's fine for a standalone example, but it isn't how the full robot code is structured. The robot project should have all the Opens put in the Begin vi, with each resulting reference fed into a registry Set vi. Everything inside the example's While should go in the Teleop vi, which you might think of as having an implied While around it. Use a registry Get in Teleop instead of another Open; you can see how that's done with the existing references. Put each Close from the example in the Finish vi, again using the existing code as a pattern.
Reply With Quote
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cheap motor controller dpeterson3 Electrical 15 17-06-2009 17:42
Motor speed sensing with the Jaguar motor controller? mminutto FRC Control System 5 13-01-2009 18:13
Motor Controller RoarRoar Motors 4 24-01-2008 21:32
purchase motor controller wkethman Electrical 7 09-01-2006 09:16
Program error after controller reset randomperson Programming 6 04-01-2005 23:31


All times are GMT -5. The time now is 22:51.

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