Go to Post If you don't KNOW something as fact, please do not state it as fact. - dlavery [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-01-2010, 16:21
Us3rNam3's Avatar
Us3rNam3 Us3rNam3 is offline
Is LabVIEW code lighter than C++?
AKA: Tristan
FRC #1625 (Winnovation)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Winnebago, IL
Posts: 17
Us3rNam3 is an unknown quantity at this point
Question using CAN with the 2010 control system

Does anyone have any tips or know to program using CAN using the Andy Mark adapter? Any info on how to use CAN would be greatly appreciated. Diagrams/pics of code would especially helpful.

Thank you
__________________
DFTBA. NERDFIGHTERIA FOREVER!

J'adore les robo.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2010, 23:14
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: using CAN with the 2010 control system

You can find documentation and example code here.

(The 2CAN is made by Cross The Road Electronics. AndyMark is merely acting as a distributor.)
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2010, 13:59
Us3rNam3's Avatar
Us3rNam3 Us3rNam3 is offline
Is LabVIEW code lighter than C++?
AKA: Tristan
FRC #1625 (Winnovation)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Winnebago, IL
Posts: 17
Us3rNam3 is an unknown quantity at this point
Re: using CAN with the 2010 control system

thank you...but unfortunately i forgot to include that i need it for labVIEW not c++
__________________
DFTBA. NERDFIGHTERIA FOREVER!

J'adore les robo.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2010, 14:53
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: using CAN with the 2010 control system

Send an email to Omar Zrien (ozrien@gmail.com).

Quote:
Originally Posted by Omar Zrien
The cRIO driver/interface will allow you to transmit and receive "CAN Frames", whereby a CAN frame will be defined as a structure with arbid, data bytes, len, and also status bits for selecting extended ids, remote frames, and also possibly error information (Transmit Error Count, Receive Error Count).
I suppose it is possible that they don't have a license to LabVIEW, and thus can't do the LabVIEW portion themselves. In looking at it, it's a UDP datagram of a struct[ message, arbitration ID].
If I had experience with UDP, I'd do it myself.
__________________
-- Marshal Horn
Reply With Quote
  #5   Spotlight this post!  
Unread 17-01-2010, 21:37
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: using CAN with the 2010 control system

The LabVIEW API (as well as C++ and Java) for using CAN is here: http://firstforge.wpi.edu/sf/projects/canjaguar

The C++ API that CTRE has posted will not work with FRC 2010, based on the rules requirement of using the FIRST specific Jaguar firmware.
Reply With Quote
  #6   Spotlight this post!  
Unread 17-01-2010, 21:50
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: using CAN with the 2010 control system

BTW, the plugin for the 2CAN has not been released yet. When it is, you will be able to find it at FIRST Forge.

Another way to connect to CAN is to use the new Black Jaguar as a serial to CAN bridge. You just make the cable according the the getting started guide from TI and plug it straight into the RS232 serial port on the cRIO. This way you don't need to buy a separate bridge device and can simply use one of your motor controllers. The driver plugin for using the Black Jaguar as a Serial to CAN bridge is posted on FIRST Forge.

If you are going to use a lot of motors in open loop mode, you may need the additional bandwidth of Ethernet.
Reply With Quote
  #7   Spotlight this post!  
Unread 21-01-2010, 22:42
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: using CAN with the 2010 control system

If anyone has difficulty navigating the FIRST Forge site looking for the LabVIEW code to use with Jaguar / CAN, here is a deep link to the zip file (at least where it is today):

http://firstforge.wpi.edu/sf/frs/do/...ar_for_labview
Reply With Quote
  #8   Spotlight this post!  
Unread 30-01-2010, 18:06
Andy Bradley Andy Bradley is offline
Registered User
FRC #0233
 
Join Date: Jan 2010
Location: Florida
Posts: 15
Andy Bradley is an unknown quantity at this point
Re: using CAN with the 2010 control system

Quote:
Originally Posted by airnate View Post
If anyone has difficulty navigating the FIRST Forge site looking for the LabVIEW code to use with Jaguar / CAN, here is a deep link to the zip file (at least where it is today):
Thanks very much. Do you know in which directory the extracted files should be placed so that LabView can see them?
Reply With Quote
  #9   Spotlight this post!  
Unread 30-01-2010, 23:26
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: using CAN with the 2010 control system

Quote:
Originally Posted by Andy Bradley View Post
Thanks very much. Do you know in which directory the extracted files should be placed so that LabView can see them?
We put them in

C:\Program Files\National Instruments\LabVIEW 8.6\user.lib\CANJaguar for LabVIEW

They will then show up in your User Libraries palette in LabVIEW.
Reply With Quote
  #10   Spotlight this post!  
Unread 01-02-2010, 10:29
imcmahon01 imcmahon01 is offline
Registered User
FRC #1143
 
Join Date: Feb 2010
Location: Scranton, PA
Posts: 8
imcmahon01 has a spectacular aura aboutimcmahon01 has a spectacular aura aboutimcmahon01 has a spectacular aura about
Re: using CAN with the 2010 control system

I have a similar question to Andy's. Our team is using the netbeans ide; how is the CANJaguar for Java folder added as a library to allow the use of edu.wpi.first.addons.CANJaguar?
Reply With Quote
  #11   Spotlight this post!  
Unread 01-02-2010, 10:57
MikeE's Avatar
MikeE MikeE is offline
Wrecking nice beaches since 1990
no team (Volunteer)
Team Role: Engineer
 
Join Date: Nov 2008
Rookie Year: 2008
Location: New England -> Alaska
Posts: 381
MikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond repute
Re: using CAN with the 2010 control system

Our team has looked at the Java CANJaguar release, and at the moment only voltage setting is supported - none of the closed-loop methods are implemented yet.
I'm not sure if the primary developers are planning to release another update before the end of build, but we plan to try to implement some of the functionality we need ourselves. If we have success we will make our efforts available to the community.
In the meantime, the bdc-comm utility does allow some experimentation with closed loop control, but obviously not under actual robot conditions.
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
Tips for C++ programming the 2010 control system woodk C/C++ 12 23-01-2010 21:38
2010 Control System Manual screamingeagle FRC Control System 9 11-01-2010 14:01
Unclaassified: Information about the 2010 control system Nadav Zingerman General Forum 35 24-11-2009 19:17
Do we have to ship the control system along with the robot on Tuesday? tennisbeast29 Rules/Strategy 3 14-02-2009 13:39


All times are GMT -5. The time now is 11:50.

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