Go to Post At this rate, Team Update #2 should just eliminate the Minibots and replace it with the drive team captains playing rock-paper-scissors to determine the bonus points. - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-09-2008, 18:36
starsROBOTICS starsROBOTICS is offline
Registered User
FRC #2276 (S.T.A.R.S)
Team Role: Engineer
 
Join Date: Mar 2008
Rookie Year: 2006
Location: texas, houston
Posts: 44
starsROBOTICS is on a distinguished road
I have several question

Ok whenever you program in labview does how do you choose what I/0 is being used?
Also i looked everywhere in these programming posts, and i can't find one that answers my question.
Is these a default control for the joysticks?
I can't find one. If i have to program the joysticks myself, how do i make it to where the duty cylce increases as i move the joystick? Stuff like that it doesnt explain in the getting started book that labview provides thats why im asking.
And if you know a post that explains some of this please post it because i keep getting in trouble with chiefdelphi.com for reposts
__________________
  #2   Spotlight this post!  
Unread 05-09-2008, 18:53
Branden Ghena's Avatar
Branden Ghena Branden Ghena is offline
Previously: tawnos23
FRC #0240 (TEMPEST)
Team Role: College Student
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Houghton, Michigan (MTU)
Posts: 303
Branden Ghena has a spectacular aura aboutBranden Ghena has a spectacular aura aboutBranden Ghena has a spectacular aura about
Re: I have several question

Since labview hasn't actually been used in the past for programming FIRST robots, I would have to say that there probably isn't any default code out yet. The key word in that sentence is yet. When the season gets closer I am sure some default code will be released.

Also for programming the joysticks, what you do in C is grab the analog input from the joysticks (a number from 0 to 254 with 127 as center) and output it to the wheel motors as a pwm value (also 0 to 254 with 127 as center). Most teams also modify the value a bit before they output it (i.e. a bigger deadzone in the middle, half speed, etc.). You don't actually change the duty cycle, but instead output the pwm value to the victor which takes it and uses it to set its duty cycle.
__________________
Branden Ghena - Michigan Tech Student and Team 240 Alumnus
Working Towards: Electrical Engineering and Computer Engineering Double Major

"All we have to decide is what to do with the time that is given to us." - Gandalf
  #3   Spotlight this post!  
Unread 05-09-2008, 19:04
starsROBOTICS starsROBOTICS is offline
Registered User
FRC #2276 (S.T.A.R.S)
Team Role: Engineer
 
Join Date: Mar 2008
Rookie Year: 2006
Location: texas, houston
Posts: 44
starsROBOTICS is on a distinguished road
Re: I have several question

ok well i thought i had to program using labview but i guess not. thanks now i can save me alot of time
__________________
  #4   Spotlight this post!  
Unread 05-09-2008, 19:07
Branden Ghena's Avatar
Branden Ghena Branden Ghena is offline
Previously: tawnos23
FRC #0240 (TEMPEST)
Team Role: College Student
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Houghton, Michigan (MTU)
Posts: 303
Branden Ghena has a spectacular aura aboutBranden Ghena has a spectacular aura aboutBranden Ghena has a spectacular aura about
Re: I have several question

Quote:
Originally Posted by starsROBOTICS View Post
ok well i thought i had to program using labview but i guess not. thanks now i can save me alot of time
Well, as we are going to a new control system, the cRio by National Instruments, this year, labview is an option for programming. National Instruments has confirmed (several times in fact) that C and C++ will also be options though.
__________________
Branden Ghena - Michigan Tech Student and Team 240 Alumnus
Working Towards: Electrical Engineering and Computer Engineering Double Major

"All we have to decide is what to do with the time that is given to us." - Gandalf
  #5   Spotlight this post!  
Unread 05-09-2008, 19:53
Bob Steele's Avatar
Bob Steele Bob Steele is offline
Professional Steamacrit Hunter
AKA: Bob Steele
FRC #1983 (Skunk Works Robotics)
Team Role: Coach
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Seattle, Washington
Posts: 1,529
Bob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond repute
Re: I have several question

I believe that you could get a bunch of help from the LabView version that will be coming with the FTC kits... It is Labview for FTC. I would imagine it will have some of the remote control commands all worked out and will have a default program (but for FTC).

I will look into my crystal ball here and I would predict that we will get a Labview for FRC included in our KOP this year... I would imagine it will have the Labview default code and a bunch of other easily applicable modules for remote control, motor control... etc...

If you have an FTC team near you check with them... but after next week...
the kits went out today...(September 5th) and should be in their hands next week....

I think that NI will be coming through for us with a relatively easy way to interface controllers... I don't know WHAT kind of controllers but something.

Hope this helps a little...
__________________
Raisbeck Aviation High School TEAM 1983 - Seattle, Washington
Las Vegas 07 WINNER w/ 1425/254...Seattle 08 WINNER w/ 2046/949.. Oregon 09 WINNER w/1318/2635..SEA 10 RCA ..Spokane 12 WINNER w/2122/4082 and RCA...Central Wa 13 WINNER w/1425/753..Seattle 13 WINNER w/948/492 & RCA ..Spokane 13 WINNER w/2471/4125.. Spokane 14 - DCA --Auburn 14 - WINNER w/1318/4960..District CMP 14 WINNER w/1318/2907, District CMA.. CMP 14 Newton Finalist w 971/341/3147 ... Auburn Mountainview 15 WINNER w/1318/3049 - Mt Vernon 15 WINNER w/1318/4654 - Philomath 15 WINNER w/955/847 -District CMP 15 WINNER w/955/2930 & District CMA -CMP Newton -Industrial Design Award

  #6   Spotlight this post!  
Unread 05-09-2008, 20:03
RaMoore's Avatar
RaMoore RaMoore is offline
Registered User
AKA: Rachel Moore
FRC #3005 (RoboChargers)
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Dallas, TX
Posts: 65
RaMoore has much to be proud ofRaMoore has much to be proud ofRaMoore has much to be proud ofRaMoore has much to be proud ofRaMoore has much to be proud ofRaMoore has much to be proud ofRaMoore has much to be proud ofRaMoore has much to be proud ofRaMoore has much to be proud ofRaMoore has much to be proud of
Re: I have several question

I encourage you to keep trying to program in LabVIEW, I know it can be intimidating and frustrating but it's a very good product and it will be great for the students to get exposure to such an important industry tool.

I'm eager to see what default code and vi's we'll get from FIRST but LabVIEW already has so many of the needed solutions to controlling robots. We don't have our Vi's posted but you can see images of how we controlled a kitbot using labVIEW, our cRio, a laptop, joystick, and a wireless router on our website: http://www.team1817.org/cRio_report.html

Disclaimer: This is just a side project for us to play around with LabVIEW and may be nothing like the new FIRST control system
__________________
Rachel Moore
REV Robotics | www.revrobotics.com
  #7   Spotlight this post!  
Unread 05-09-2008, 20:54
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: I have several question

In LabView you can use a kind-of 'wizard' block to manage the input device (to which the joystick is connected) and that will put put a varying signal (varying according to the joystick position). You can then scale this to a range of 0-255 or whatever you prefer.

I'm not giving the gory details because they change according to the specific input device. For the NI USB-6009 Data Acquisition (DAQ) Device we have, the "DAQ Assistant" can be configured for several different kinds of analog or digital input (for example, resistance, voltage, strain, temperature, current, acceleration....).

The signal from this DAQ Assistant block can be coupled to a second block to scale it, the output as a PWM pulse train by a third block to a Victor, for example. The cool thing is that to program it, you can drop in "Virtual" blocks to simulate your hardware, you don't even need to have a physical device.

Read the tutorials. Get a Lego Mindstorms NXT kit (which uses a form of LabView). Get LabView and run it, play around. You have 121 days.....GO!

Don

.
__________________

I am N2IRZ - What's your callsign?
  #8   Spotlight this post!  
Unread 08-09-2008, 20:54
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: I have several question

I know NI has released some VIs for the simulation of motors and optical encoders (among other things), but they haven't actually released the VIs that are going to be in the default code. (It seems that the default code consists of an output-disable when E-stop is pressed or when they lose input from the operator interface, a VI to take the ethernet camera data and convert it to a picture datatype, and some sort of OCR.)

I don't have the default code, but I've uploaded some useful VIs I made. Feel free to take a look at them and use them in whatever you plan to do. http://sotabot.com/robot/programming.html
I plan to upload more useful information for teams in the near future.
__________________
-- Marshal Horn
  #9   Spotlight this post!  
Unread 10-09-2008, 09:56
mluckham's Avatar
mluckham mluckham is offline
Registered User
FRC #0758 (Sky Robotics)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Ontario, Canada
Posts: 116
mluckham will become famous soon enoughmluckham will become famous soon enough
Re: I have several question

Excellent, thanks kamocat ... we can all use all the help we can get, as we walk down this new path
  #10   Spotlight this post!  
Unread 10-09-2008, 11:06
BLAQmx's Avatar
BLAQmx BLAQmx is offline
Software Engineer
no team (National Instruments)
Team Role: Engineer
 
Join Date: Sep 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 100
BLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of light
Re: I have several question

Quote:
Originally Posted by starsROBOTICS View Post
Ok whenever you program in labview does how do you choose what I/0 is being used?
Also i looked everywhere in these programming posts, and i can't find one that answers my question.
Is these a default control for the joysticks?
I recommend posting this question on the NI FIRST forums. These forums are moderated and supported by NI Engineers that have (a lot) of experience programming in LabVIEW AND programming with the VIs for FRC. If you want more explanation and sample code like I have provided I strongly recommend posting your questions there.

Quote:
Originally Posted by Bob Steele
I will look into my crystal ball here and I would predict that we will get a Labview for FRC included in our KOP this year... I would imagine it will have the Labview default code and a bunch of other easily applicable modules for remote control, motor control... etc...
You are absolutely right! LabVIEW FRC edition will be shipping with the KOP, and it will contain default code to interface with sensors, motors, robot drive, etc.

Quote:
Originally Posted by Don Rotolo
In LabView you can use a kind-of 'wizard' block to manage the input device (to which the joystick is connected) and that will put put a varying signal (varying according to the joystick position). You can then scale this to a range of 0-255 or whatever you prefer.
You won't need to use the DAQ Assistant ("wizard block") to interface with your joysticks. You simply drop down a joystick VI and select which port your joystick is plugged into (the numbers correspond to which USB ports on the driver station).


Attached is a sneak-peak screen shot of a portion of the joystick API that should answer the original question.
Attached Thumbnails
Click image for larger version

Name:	ScreenShot001.png
Views:	64
Size:	45.2 KB
ID:	6807  
Closed Thread


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
anybody have a schematic for air tanks? (was: i have a question) Pankowgears Pneumatics 8 07-02-2007 17:56
I have a Rule Question! Jesse General Forum 3 14-01-2004 15:28
do you have a question about girls? angier314 Chit-Chat 53 20-02-2003 12:24
i have one question Greg Perkins Chit-Chat 3 01-09-2002 23:38


All times are GMT -5. The time now is 19:23.

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