Go to Post Screwing up is part of the game. Iterating, testing, and analyzing your failures separates the great from the average. - Jon Stratis [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 08-01-2009, 11:17
finman's Avatar
finman finman is offline
Programmer
AKA: Chris Finley
FRC #0888 (Robotiators)
Team Role: Programmer
 
Join Date: Mar 2008
Rookie Year: 2008
Location: Glenelg, MD
Posts: 16
finman is an unknown quantity at this point
Tank Drive with Advanced Framework in Labview

i have successfully implemented a tank drive system with the basic robot framework in labview, but i have not been able to do so with the advanced framework. i am still having a little bit of trouble understanding where all of the variables are stored in labview, in particular the "joystickdevref". i figured out how to add a second reference for my second joystick in the global variables vi, but it won't change to USB2. after i change it, save it, close it, and reopen it, both references say USB1 again. does anyone know what my problem is? also, can you explain exactly what the joystickdevref variables are?
__________________


"Red goes to black, right guys?" ~Mike Mascaro: Our Fearless Leader
Reply With Quote
  #2   Spotlight this post!  
Unread 08-01-2009, 11:59
s0crates s0crates is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2009
Location: Australia
Posts: 52
s0crates is on a distinguished road
Re: Tank Drive with Advanced Framework in Labview

You have to open it with jostick=>open - otherwise you just have an empty variable, essentially. The space is reserved but you need to initialize it with joystick=>open and stick its output joystickdevref into there.

-jonathan
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2009, 19:22
lookitsnichole lookitsnichole is offline
Registered User
FRC #2545
 
Join Date: Jan 2009
Location: Minnesota
Posts: 4
lookitsnichole is an unknown quantity at this point
Re: Tank Drive with Advanced Framework in Labview

Where/how do you open it with joystick->open? We can't seem to find it. Thanks in advance.
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2009, 23:07
s0crates s0crates is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2009
Location: Australia
Posts: 52
s0crates is on a distinguished road
Re: Tank Drive with Advanced Framework in Labview

There is a sidebar with all the robotics vis etc as well as labview functions - access it from View->Functions Palette when in block diagram or right click.

joystick-open is under WPI Robotics Library->DriverStation->Joystick.

-jonathan
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2009, 13:35
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,713
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Tank Drive with Advanced Framework in Labview

Look for where the existing joystick is opened in Teleop.vi.

In Teleop.vi the case structure has:
-- An "Init" section where the joystick open's are done
-- A "Stop" section where the joystick is closed
-- An "Execute" section where the joystick gets used
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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
Tank Drive Sauce Programming 1 05-01-2009 18:50
New TipJar Training Video - Making Friends with the FRC Advanced Robot Framework LVMastery Programming 0 05-01-2009 14:54
Please Help, Don't Know How to Implement Tank Drive in LabView CVassos NI LabVIEW 5 24-12-2008 16:55
Major problems with tank tread drive Lord Nerdlinger Technical Discussion 13 23-02-2004 21:15
tank drive Stormhammer Programming 11 29-01-2004 23:08


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

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