Go to Post ...if you don't ask, you won't get. - Billfred [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 17-02-2013, 23:13
saulwold saulwold is offline
Registered User
FRC #2521
 
Join Date: Jan 2013
Location: Eugene, OR
Posts: 2
saulwold is an unknown quantity at this point
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!
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2013, 23:46
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2013, 11:47
Phalanx's Avatar
Phalanx Phalanx is offline
Formerly Team 1089 (Mercury)
AKA: Michael Reffler
FRC #5431 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 1999
Location: Lewisville, TX (previously NJ)
Posts: 384
Phalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond repute
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
__________________
Don't just ask the experts, become one!
Leadership is not about ability. It's about responsibility!
Diagonally Parked in a Parallel Universe. It's okay we do Quantum Physics


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


All times are GMT -5. The time now is 22:49.

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