Go to Post There are no easy answers... only complicated and never ending questions. - Shawn60 [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 06-02-2009, 22:48
PWHSrobotics PWHSrobotics is offline
Registered User
no team
 
Join Date: Jan 2006
Location: Missouri
Posts: 31
PWHSrobotics is an unknown quantity at this point
AI Programming

This is a noob question,

How do I send other references (like sensors) to the AI VI ? it doesn't use the front panel like I normally send VI's references.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2009, 22:56
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: AI Programming

Sorry. Maybe I'm missing something obvious, but what are you referring to as the AI vi?
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2009, 23:16
PWHSrobotics PWHSrobotics is offline
Registered User
no team
 
Join Date: Jan 2006
Location: Missouri
Posts: 31
PWHSrobotics is an unknown quantity at this point
Re: AI Programming

sorry, my bad

'Autonomous Independent' VI in labview I want to send it other sensor references, also how do I send it just the normal 'Motor' Control from the Arcade drive provided in the default Robot Basic VI
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2009, 23:44
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: AI Programming

Probably the easiest way to do this is to create more controls on the Basic Robot Global.vi, which as the name implies, is a global variable.

For instance if you want to pass an Accelerometer device reference to the Autonomous Independent vi,

1. Drop the Accelerometer Open.vi in Basic Robot Main.vi
2. Double click the Accelerometer Open.vi to open it.
3. Copy the AccelerometerDevRef (select the indicator and press Ctrl-C)
4. Open Robot Global.vi from the project window.
5. Paste the AccelerometerDevRef on the Robot Global.vi and name it (let's say "Accel1" for this example).
6. Drag the Robot Global.vi from the Project window to the Basic Robot Main.
7. Click on the Robot Global and select "Accel1" (or whatever you named in step 2).
8. Wire the Accelerometer Open.vi to the Accel1 global
9. Drag another Robot Global.vi from the project to Autonomous Independent vi
10. Right click on it and select "Change to Read"
11. use it to wire whatever you're going to do with the sensor.

You can see that the basic robot framework already has a RobotDriveDevRef which may be the "motor" reference that you were asking about.

Actually, you should be careful to distinguish between "drive" references and "motor" references. The "Drive" VIs are used where two or more motors used together as a drive system (e.g. arcade, tank). The "Motor" VIs are used for control of a single motor.
Reply With Quote
  #5   Spotlight this post!  
Unread 08-02-2009, 21:16
PWHSrobotics PWHSrobotics is offline
Registered User
no team
 
Join Date: Jan 2006
Location: Missouri
Posts: 31
PWHSrobotics is an unknown quantity at this point
Re: AI Programming

thankyou guys for your help. Got another question (of course lol) the new Get Alliance VI ...I get red/blue alliance, but it gives you position 1-3, what position corresponds to where on the field.

Much appreciated for your help.
Reply With Quote
  #6   Spotlight this post!  
Unread 08-02-2009, 23:17
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: AI Programming

I think that will indicate which initial location on the field a robot will start in.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 09-02-2009, 07:37
PWHSrobotics PWHSrobotics is offline
Registered User
no team
 
Join Date: Jan 2006
Location: Missouri
Posts: 31
PWHSrobotics is an unknown quantity at this point
Re: AI Programming

yep, I know Was just curios as to what number corresponded to which spot. for I can incorporate that into the Auto period.
Reply With Quote
  #8   Spotlight this post!  
Unread 09-02-2009, 08:14
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: AI Programming

no, the position related to where your drivers are. Not a lot of use for auto.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #9   Spotlight this post!  
Unread 09-02-2009, 18:54
PWHSrobotics PWHSrobotics is offline
Registered User
no team
 
Join Date: Jan 2006
Location: Missouri
Posts: 31
PWHSrobotics is an unknown quantity at this point
Re: AI Programming

yes, but just for kicks, how does the numbering work? Does anyone know? is 1 closes and 3 farthest? or what?
Reply With Quote
  #10   Spotlight this post!  
Unread 09-02-2009, 18:59
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: AI Programming

Quote:
Originally Posted by PWHSrobotics View Post
yes, but just for kicks, how does the numbering work? Does anyone know? is 1 closes and 3 farthest? or what?
Closest to or farthest from what?

See this thread for more info:
http://forums.usfirst.org/showthread.php?t=11671
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
Reply With Quote
  #11   Spotlight this post!  
Unread 09-02-2009, 20:26
PWHSrobotics PWHSrobotics is offline
Registered User
no team
 
Join Date: Jan 2006
Location: Missouri
Posts: 31
PWHSrobotics is an unknown quantity at this point
Re: AI Programming

hmm, so I see the R1, R2, R3 etc. My last question is this, do each of those 'Positions' correspond to any particular starting point, or is it all figured out on each alliance and has nothing to do with your robots' starting position
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming in Python and Explaination of Programming roboxking Programming 22 07-01-2008 16:08
programming motors with programming kit BorisTheBlade FIRST Tech Challenge 4 01-11-2005 19:03
programming great_one411 General Forum 1 14-02-2003 11:28
programming archiver 2000 2 23-06-2002 22:59
Programming archiver 2000 1 23-06-2002 22:34


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

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