Go to Post The sponsor had a $2000 sheet of aircraft aluminum in their scrap bin? Do they also blow stacks of dollar bills off their loading dock with a giant fan? - Richard Wallace [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 24-01-2011, 16:04
CNettles11's Avatar
CNettles11 CNettles11 is offline
Registered User
AKA: Chris Nettles
FRC #3502 (Octo-Pi-Rates)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Tallahassee, FL
Posts: 122
CNettles11 is a jewel in the roughCNettles11 is a jewel in the roughCNettles11 is a jewel in the roughCNettles11 is a jewel in the rough
How to add extra Jaguars to code

We need to program an extra Jaguar to run the motor for our manipulator using LabVIEW. Are there any .VI's that are good to use/edit for this? Are there any tutorials? If you have a solution please reply.

Thank you.
-Team 3556
Reply With Quote
  #2   Spotlight this post!  
Unread 24-01-2011, 16:41
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: How to add extra Jaguars to code

Isn't "simple motor control" one of the provided examples? I don't have LabVIEW for FRC handy, so I can't walk you through it, sorry.
Reply With Quote
  #3   Spotlight this post!  
Unread 24-01-2011, 17:09
CNettles11's Avatar
CNettles11 CNettles11 is offline
Registered User
AKA: Chris Nettles
FRC #3502 (Octo-Pi-Rates)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Tallahassee, FL
Posts: 122
CNettles11 is a jewel in the roughCNettles11 is a jewel in the roughCNettles11 is a jewel in the roughCNettles11 is a jewel in the rough
Re: How to add extra Jaguars to code

Hmm, I'll try that and let you know.
Reply With Quote
  #4   Spotlight this post!  
Unread 24-01-2011, 19:09
theNerd's Avatar
theNerd theNerd is offline
Registered User
FRC #3329 (Cam Bots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2110
Location: St. Marys
Posts: 51
theNerd is an unknown quantity at this point
Re: How to add extra Jaguars to code

Quote:
Originally Posted by Alan Anderson View Post
Isn't "simple motor control" one of the provided examples?
I can confirm this. In fact there are multiple of ways that you can control a Jag with. You can either use the Drive Motors VI or the Motor Set Output VI. The latter would be the most useful to your purpose if I understand it correctly - that is you just want to control only one Jag. These are located in the RobotDrive sub tools panel in the Advanced section. Just follow the context help and it should set you straight.
Reply With Quote
  #5   Spotlight this post!  
Unread 24-01-2011, 19:51
CNettles11's Avatar
CNettles11 CNettles11 is offline
Registered User
AKA: Chris Nettles
FRC #3502 (Octo-Pi-Rates)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Tallahassee, FL
Posts: 122
CNettles11 is a jewel in the roughCNettles11 is a jewel in the roughCNettles11 is a jewel in the roughCNettles11 is a jewel in the rough
Re: How to add extra Jaguars to code

we copy+pasted all the drive motor code and set it up where it would control the manipulator motor as the left drive motor.

We're basically just trying to control 1 motor with 1 jaguar and 1 joystick, using only the X-axis. Both axes are alright if we need to use them.
Reply With Quote
  #6   Spotlight this post!  
Unread 25-01-2011, 14:23
CNettles11's Avatar
CNettles11 CNettles11 is offline
Registered User
AKA: Chris Nettles
FRC #3502 (Octo-Pi-Rates)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Tallahassee, FL
Posts: 122
CNettles11 is a jewel in the roughCNettles11 is a jewel in the roughCNettles11 is a jewel in the roughCNettles11 is a jewel in the rough
Re: How to add extra Jaguars to code

We're still stuck, any help at all will be appreciated!
Reply With Quote
  #7   Spotlight this post!  
Unread 25-01-2011, 15:00
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: How to add extra Jaguars to code

Look at the Motor Control Example in LabVIEW. Things to the left of the loop correspond to the Begin of a robot project. Things inside the loop correspond to Teleop. Things to the right of the loop correspond to Finish.

Put a Motor Open vi in Begin and wire constants to its DIO Module and PWM Channel inputs to define which Digital Sidecar output you want to connect the motor controller to. Use the selector below it to tell it whether you're using a Jaguar or a Victor. Wire the resulting MotorControlDeviceRef output to a Motor Refnum Set and give it a name that represents what it does.

In Teleop, put a Motor Refnum Get with that same name and wire its output to a Motor Set Output vi. The Output input (yeah, weird name, but whatever) should be wired to whatever you want to use to control the speed of that motor.

In Finish, put another Motor Refnum Get and a Motor Close. You'll see where to place them by looking at everything else in Finish.

Does that help?
Reply With Quote
  #8   Spotlight this post!  
Unread 26-01-2011, 21:55
CNettles11's Avatar
CNettles11 CNettles11 is offline
Registered User
AKA: Chris Nettles
FRC #3502 (Octo-Pi-Rates)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Tallahassee, FL
Posts: 122
CNettles11 is a jewel in the roughCNettles11 is a jewel in the roughCNettles11 is a jewel in the roughCNettles11 is a jewel in the rough
Re: How to add extra Jaguars to code

Thanks for all your help, we've got it working now.
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 08:26.

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