Go to Post No, nothing secret unless you include the following: will it work?, can it be driven and will it release the balls. - twolf [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 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,113
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
  #2   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 21:20.

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