Can't get CAN status

This problem has been posted in the CAN forum already but because this is primarily a programming problem and this problem has yet to be solved I have decided to bring it to the attention of the programmers of the wonderful world of LabVIEW. In my team’s attempts to use CAN for the first time we have run into a problem. For some mysterious reason we are not able get the status from the jag. We have all the same components as the example for CAN, the speed controller version, implemented into robot code. From what I have read this problem has occurred with other teams this season but I am yet to find a thread with a solution. Any help would be appreciated.

-Ethan Lopez

If you post your code, we can take a look at it.

What kind of feedback are you looking for that you’re not getting?

Here are the pictures of Begin and periodic tasks

begin.png




begin.png

I don’t notice anything wrong with your code pictures. Does the example you took this code from work for you? You should make sure it does before you merge it into your robot code. If the example works, then post your actual code (not pictures) so we can try it.

If you’re using the encoders included in the KOP, try changing your encoder type from “Quad Encoder” to “Encoder”. Also, double-check your encoder connections to the Jag.

You might consider getting an example working before trying this in a robot project.

The example code worked fine and the software designed to work the CAN worked as well. Here is the code itself, just periodic and begin.

Begin.vi (44.4 KB)
Periodic Tasks.vi (34.3 KB)


Begin.vi (44.4 KB)
Periodic Tasks.vi (34.3 KB)