Go to Post You don't need to be on a team to be involved with FIRST. - Koko Ed [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 16-03-2010, 22:32
team_1026 team_1026 is offline
Registered User
FRC #1026
 
Join Date: Mar 2010
Location: York SC
Posts: 22
team_1026 is an unknown quantity at this point
Exclamation HELP! 15 year old new programmer! Joysticks confusing me!!

Hello all! I am a 15 year old and I am trying to teach myself LABview in the next week! (I know it's next to impossible) I installed LABview but whenever I open up a new project the Gyro files are missing and I can't use the default Telo.vi that they have on there. So last night I wrote a new program just trying to control the robot in tank drive configuration with two joysticks....the only problem is it isn't recognizing the other joystick! I have changed the refnum of both of them and they still arn't being recognized! Also the solenoid I am using I keep getting an error something to do with allocated something or other! lol I am desperate for any clues! our regional is the 25th in clemson SC!!!! PLEASE HELP!!!! Thanks


---(15 YEAR OLD) Programmer for 1026
Reply With Quote
  #2   Spotlight this post!  
Unread 16-03-2010, 22:36
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: HELP! 15 year old new programmer! Joysticks confusing me!!

If you are having issues loading examples and default code, you probably need to install the update. Once you can load and run examples, the learning and editing will go much faster.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 16-03-2010, 23:20
team_1026 team_1026 is offline
Registered User
FRC #1026
 
Join Date: Mar 2010
Location: York SC
Posts: 22
team_1026 is an unknown quantity at this point
Re: HELP! 15 year old new programmer! Joysticks confusing me!!

I have installed the update. I think that might be what messed me up in the first place...All I need help with is the joysticks!!!!
Reply With Quote
  #4   Spotlight this post!  
Unread 17-03-2010, 00:42
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: HELP! 15 year old new programmer! Joysticks confusing me!!

Describe exactly what you need and we will tell you how to do it
P.S. I learned Labview in a week right before competition last year (I am 16 now) so i know you can do it!
__________________
Expect the best, Prepare for the worst
Reply With Quote
  #5   Spotlight this post!  
Unread 17-03-2010, 00:49
team_1026 team_1026 is offline
Registered User
FRC #1026
 
Join Date: Mar 2010
Location: York SC
Posts: 22
team_1026 is an unknown quantity at this point
Re: HELP! 15 year old new programmer! Joysticks confusing me!!

Thanks guys! I need 4 motors to be controlled by two joysticks in a tank drive function. I need a solenoid to extend a cylinder when button three is pressed on the joystick. I would like the camera to work but lets not get greedy and I need the ability to be able to limit how much speed gets to the motors until BOTH of the buttons(1) are pressed on the joysticks, then it would allow 100% power to the motors.


If you can't do all that then I understand. Biggest thing is the button 1 function
Reply With Quote
  #6   Spotlight this post!  
Unread 17-03-2010, 01:16
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
Smile Re: HELP! 15 year old new programmer! Joysticks confusing me!!

First we are programmers we can do anything
Ok heres what to do and if you have questions please ask
1.open a new VI
2.in begin you need to open the 4 motor drive,solenoid,joystick 1, joystick 2 and if you are using a compressor open that also
3.you need to send the opens to teleop with the reference VIs(with the picture of the arrow pointing toward the document) for each of those things name the string accordingly
4.close and save Begin
5. in telop you need to bring out the reference(The same reference but with the arrow pointing away from the document) for the things that you opened
6.you need to grab the Get axis VI from the joystick pallet and place one for each joystick wiring the brown wires up specify the axis to 2 which is the Y axis the number coming out of the get axis on the right is the value of the joystick
7.next put a tank drive VI from the robot drive pallet and wire the joystick values into the left and right of the tank drive VI
8.next the solenoid put in a case structure and put a set vi from the solenoid pallet in each case(true and false) now the green input is where you put a constant true in the true case, false in the false case
9.you have no condition for the vi so you need to put in a get raw from the joystick pallet, wire the brown wire from which ever joystick to the get raw then get a unbundle by name function from the cluster class and variant pallet and wire the buttons output from the get raw to the left side of it
now it will list buttons 1-12 wire Three into the condition of the solenoid case
10.close teleop and save now go to finish and put in a reference (The same one from Teleop) and wire the reference to a corresponding close
Also what purpose are you limiting the motors their may be a better way to do what you want
and what are you running the solenoid off of a relay or of the C-rio
Again please ask questions as i am doing this from memory!
__________________
Expect the best, Prepare for the worst

Last edited by bladetech932 : 17-03-2010 at 01:39.
Reply With Quote
  #7   Spotlight this post!  
Unread 17-03-2010, 02:15
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
Thumbs up Re: HELP! 15 year old new programmer! Joysticks confusing me!!

Here are some pictures
http://i918.photobucket.com/albums/a...tics/Begin.jpg
http://i918.photobucket.com/albums/a...ics/Finish.jpg
http://i918.photobucket.com/albums/a...ics/Teleop.jpg
hope this helps
__________________
Expect the best, Prepare for the worst
Reply With Quote
  #8   Spotlight this post!  
Unread 17-03-2010, 11:06
team_1026 team_1026 is offline
Registered User
FRC #1026
 
Join Date: Mar 2010
Location: York SC
Posts: 22
team_1026 is an unknown quantity at this point
Re: HELP! 15 year old new programmer! Joysticks confusing me!!

That is gonna be a big help thanks! I only have one problem.l I booted up my computer this morning and opened up a project and the joystick.lvlib is corrupt! I need more help!!!! how do I fix it? it isn't loading into labview Thanks
Reply With Quote
  #9   Spotlight this post!  
Unread 17-03-2010, 13:51
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: HELP! 15 year old new programmer! Joysticks confusing me!!

Describe what do you mean by corrupt
is lv giving you a error message if so what is it
will it not let you put one of the joystick vi's on the block diagram
__________________
Expect the best, Prepare for the worst

Last edited by bladetech932 : 17-03-2010 at 14:27.
Reply With Quote
  #10   Spotlight this post!  
Unread 17-03-2010, 14:32
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: HELP! 15 year old new programmer! Joysticks confusing me!!

http://www.zshare.net/myzshare/my-uploads.php
Here is a link to the files of joystick lib login with bladetech932 for username and robotics for password
just type this (C:/Program Files/National Instruments/LabVIEW 8.5/vi.lib/Robotics Library/WPI/Joystick/) into internet explorer and replace the files with the same name
__________________
Expect the best, Prepare for the worst

Last edited by bladetech932 : 17-03-2010 at 14:37.
Reply With Quote
  #11   Spotlight this post!  
Unread 17-03-2010, 22:38
team_1026 team_1026 is offline
Registered User
FRC #1026
 
Join Date: Mar 2010
Location: York SC
Posts: 22
team_1026 is an unknown quantity at this point
Re: HELP! 15 year old new programmer! Joysticks confusing me!!

I got it working. Now I just need to know how to do the speed control thing so that I get a forth of the power when they are forward but then when both #1 buttons are pressed and they are all the way forward I get full power! THANKS SO MUCH GUYS!!!!
Reply With Quote
  #12   Spotlight this post!  
Unread 01-04-2010, 13:45
NyCityKId's Avatar
NyCityKId NyCityKId is offline
That Weird Kid
AKA: Andre Dunkley
FRC #1601 (Quantum Samurai)
Team Role: Mechanical
 
Join Date: Mar 2010
Rookie Year: 2007
Location: Queens, New York
Posts: 137
NyCityKId is a splendid one to beholdNyCityKId is a splendid one to beholdNyCityKId is a splendid one to beholdNyCityKId is a splendid one to beholdNyCityKId is a splendid one to beholdNyCityKId is a splendid one to beholdNyCityKId is a splendid one to beholdNyCityKId is a splendid one to behold
Send a message via AIM to NyCityKId
Re: HELP! 15 year old new programmer! Joysticks confusing me!!

Quote:
Originally Posted by bladetech932 View Post
http://www.zshare.net/myzshare/my-uploads.php
Here is a link to the files of joystick lib login with bladetech932 for username and robotics for password
just type this (C:/Program Files/National Instruments/LabVIEW 8.5/vi.lib/Robotics Library/WPI/Joystick/) into internet explorer and replace the files with the same name
hey bladetech932, im a new programmer also. i was wondering if it was alright if i use these files also? i figure it would be ok since u posted it in a public forum but i figured i should ask first
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
New Programmer looking for some help! whackedwatchdog NI LabVIEW 7 09-01-2010 23:12
NEW PROGRAMMER!!!!! NEED HELP!!!! delphi demon Programming 5 19-04-2007 13:22
New Joysticks or Old? Josh Fritsch General Forum 3 15-02-2004 15:48
Help for New Programmer Mike375 Programming 3 27-09-2001 09:04


All times are GMT -5. The time now is 08:40.

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