Go to Post There used to be no withholding allowance! - pfreivald [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 17-02-2011, 17:34
Exernie Exernie is offline
Registered User
FRC #3080
 
Join Date: Feb 2011
Location: Texas
Posts: 9
Exernie is an unknown quantity at this point
Exclamation Too Much Code??

When i write the code, for example a 4 wheel drive system and i build and run it works through the driver station. but when i add to the code, say for example a motor, nothing works. but when i make a code only for that motor, it works. i just can't get them together. Help? could it be the classmate being stupid?
ps. the driver station says one loop could be starving another.

Last edited by Exernie : 17-02-2011 at 18:54.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2011, 17:44
Wicked Wicked is offline
Registered User
FRC #0354 (G-House Pirates)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: New York
Posts: 46
Wicked is an unknown quantity at this point
Re: Too Much Code?

Can you post a screencap of your code, so we can get a better idea of what the problem is?
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2011, 18:03
Exernie Exernie is offline
Registered User
FRC #3080
 
Join Date: Feb 2011
Location: Texas
Posts: 9
Exernie is an unknown quantity at this point
Re: Too Much Code??


<a href="http://tinypic.com?ref=24o5ca9" target="_blank"><img src="http://i51.tinypic.com/24o5ca9.jpg" border="0" alt="Image and video hosting by TinyPic"></a>

<a href="http://tinypic.com?ref=i4imxi" target="_blank"><img src="http://i51.tinypic.com/i4imxi.jpg" border="0" alt="Image and video hosting by TinyPic"></a>

Last edited by Exernie : 17-02-2011 at 18:06.
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2011, 00:58
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Too Much Code??

Didn't you post this in another thread also?

Anyway, one problem is that you have two robot drives. The robot drive vi is only meant for the wheels. For other motors (like on your arm, or your claw), you want to use the normal "motorcontrol" vi (it's under actuators).

You open it in begin the same way you would for the robot drive motors. In teleop, you just wire the joystick value to it and it's golden.
Reply With Quote
  #5   Spotlight this post!  
Unread 18-02-2011, 06:38
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,748
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: Too Much Code??

Correction, there are actually three robot drives. I can't think if a reason why you can't have multiple, but if nothing else, it is confusing everyone who expects to see motors.

First thing I'd do is to change the arm blocks in Begin to be Motor Opens and Motor stores. Next change the Teleop arm blocks to Motor Set Output. These are on the Actuators palette, top left.

Also look at the Diagnostics tab of the driver station to see if errors are being reported. Handling unwired errors has a high CPU overhead. If you know how to fix the errors, do so, otherwise post them on the forum.

Greg McKaskle
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 04:37.

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