Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   WPILib CAN Communications (http://www.chiefdelphi.com/forums/showthread.php?t=97806)

jwakeman 14-10-2011 18:41

WPILib CAN Communications
 
Does WPILib support both the RS-232 (Black Jag Gateway) and ethernet (2CAN) style CAN networks? I can't tell from the CANJaguar class if it only supports one of these modes or both. If it does support both modes how does it detect which you are using?

Thanks
Joe

rrossbach 14-10-2011 19:46

Re: WPILib CAN Communications
 
WPILib supports both, there is no difference in the robot code or WPILib code between the two.

The difference is handled by the plugin on the cRIO - if you're using RS-232 you run the Black Jag plugin on the cRIO, if using 2CAN you use the 2CAN plugin. The cRIO imaging tool lets you select which to use, or you can edit the ni-rt.ini file yourself to load the plugin you want.

jwakeman 15-10-2011 09:01

Re: WPILib CAN Communications
 
perfect thanks!

virtuald 24-10-2011 13:27

Re: WPILib CAN Communications
 
Note that (I believe) you can only use one or the other, you cannot use both.

jhersh 24-10-2011 14:33

Re: WPILib CAN Communications
 
Quote:

Originally Posted by virtuald (Post 1082354)
Note that (I believe) you can only use one or the other, you cannot use both.

That is correct. You chose which interface by selecting which to load. If you load both, the second one loaded will replace the first one.

-Joe


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi