Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Getting Potentiometer reading from CAN in Labview (http://www.chiefdelphi.com/forums/showthread.php?t=113821)

saulwold 17-02-2013 23:13

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!

Joe Ross 17-02-2013 23:46

Re: Getting Potentiometer reading from CAN in Labview
 
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.

Phalanx 18-02-2013 11:47

Re: Getting Potentiometer reading from CAN in Labview
 
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/sh...d.php?t=113070


All times are GMT -5. The time now is 12:03.

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