Go to Post When you're in a field as deep as the Championship go offensive or go home. It's that simple. - thefro526 [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 03-02-2011, 10:14
Arthur But' Arthur But' is offline
Registered User
FRC #2213
 
Join Date: Nov 2010
Location: Israel
Posts: 17
Arthur But' is an unknown quantity at this point
My auto labview code

well.... in my code i wanted the robot to move straight when the middle detector sees the line, go right a bit when the left detector sees the line and left when the right one sees it, and it just doesn't work....

http://www.chiefdelphi.com/forums/at...d=129674578 3

also i forgot.... in the false i have connected the left and right digital VIs to false/true select, both of the false on the select is 0 and the true is 0.2 and -0.2 (depends on which sensor it connects with), both of the selects connect to + and then i connect it to the rotation of the mecanum VI

Cam some one help me to get this thing work?
Attached Files
File Type: zip robot code.zip (473.6 KB, 52 views)

Last edited by Arthur But' : 03-02-2011 at 14:23.
Reply With Quote
  #2   Spotlight this post!  
Unread 03-02-2011, 19:45
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Re: My auto labview code

Are you sure they are wired correctly?
What is it doing?
Can you post a pic with the False case?
__________________
Expect the best, Prepare for the worst
Reply With Quote
  #3   Spotlight this post!  
Unread 03-02-2011, 21:59
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: My auto labview code

Post your actual code (the vi, not pictures). Also, if you are going to take pictures, hit that fancy cleanup button first, because currently it's impossible to tell which DIO in is controlling the outer case structure (much less needing to show all the possible values..)

Also, there's a compound function vi (in the boolean palette) that can have a 3 input AND gate, which I'd suggest using.

What is it programmed to do when it hits the Y? Or are you just going to do the outside? It might be helpful to add a fourth AND input to add a timer in there to make sure it doesn't stop early.

One last thing: It's very helpful to change ALL of your constants to controls. This will let you change all the motors speeds and everything on the fly, without reuploading.
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:30.

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