Getting Potentiometer reading from CAN in Labview

Hi there,

We are trying to read a potentiometer via the CAN bus in Labview. When we hook up the Jaguar directly to BDCcomm, it reads the values correctly, we can also get the values of the potentiometer from the Analog Card on the cRio via Labview code and driver station, but when we try to use the Jaguar CAN VI codes in Labview it returns 0 values from the “Get Status” VI.

We have set the CAN Jaguar up for Position and Potentiometer, we have tried setting POT Turns to 0 and 1, seems to make no difference. All the values from GET Status report 0, while if connected to BDCComm we get valid values.

Thanks
Sau!

Last year, we could only read the potentiometer when the robot was enabled. I have not tried it this year to see if anything has changed.

A couple of points…

  1. Are you sure the Driver Station is enabled. If it isn’t you won’t get a response back from the Jaguar.

  2. GetStatus. Make sure you’re using ONDemand status, or if you’re using Periodic Status, make sure you have the right settings for the period configured.

  3. You can read this thread on my initial testing and discovery of POTS via CAN on a Jaguar here:

http://www.chiefdelphi.com/forums/showthread.php?t=113070