Go to Post Search is amazing. Give it a try. It's 10,000 lines of code that gets lonely if it's not played with often. - Brandon Martus [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 13-01-2012, 12:24
eat4fun's Avatar
eat4fun eat4fun is offline
sudoer
AKA: Eric Bryce
FRC #1325 (Inverse Paradox)
Team Role: Leadership
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Mississauga, Canada
Posts: 9
eat4fun is an unknown quantity at this point
Jags not taking data

Hey guys,

We’re having trouble with our CompactRIO; specifically, Jaguars are not responsive to data from the driver station. I wrote a piece of LabVIEW code to run the Jaguars either using joystick inputs or using a numerical constant (0.5). However, upon deploying this code to the cRIO, there was no indication that the code was running.

To ensure that the code was in fact running, I wrote a bit of LabVIEW code to set the value of the Jag to 0.5, and then to get the value of the speed controller and compare it to the input. I observed that while the value of 0.5 was being sent to the Jag, I was not getting the same value when I get the output of the speed controller. This leads me to believe that it is a programming error.

I have attached printscreens of the code I am using. It is not changed at all from the default code except for the actual motor code. I have also checked with different Jaguars, breakout boards, and sidecars to no avail. I have also probed the PWM ports manually with a multimeter (can't afford an oscilloscope), it does not read any significant signal on either the power, ground, or signal cables.

Thanks,
Eric

Last edited by eat4fun : 16-02-2013 at 18:33.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2012, 13:04
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
This might sound silly, but are there are errors on the driver station? i assume you are using teleop mode
__________________
Mike B
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2012, 13:34
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Jags not taking data

Is your Digital Module in Slot 2 of your cRIO?
Reply With Quote
  #4   Spotlight this post!  
Unread 13-01-2012, 13:35
NeatNit's Avatar
NeatNit NeatNit is offline
Alumni Programmer
FRC #1577 (Steampunk)
Team Role: Teacher
 
Join Date: Sep 2011
Rookie Year: 2011
Location: Israel
Posts: 60
NeatNit is an unknown quantity at this point
Re: Jags not taking data

Well, in cases like this the problem is usually a silly one. In this case I want you to try a few things:
1. Make sure you enable TeleOp in the Driver Station... I can't tell you how many times this was my problem
2. Create a DIO Out and make it toggle every half second while in TeleOp (regardless of motor output). Put a small LED or something in it if you can, or just check it with a multimeter. This will be a guarantee that the code is running and the sidecar is working.
3. Try different PWM ports, Just to make sure. Also, see a wiring diagram to make sure it's wired correctly. (I can't find one to link to atm)
4. Look for a FRC example for controlling a Jaguar and see if that works.

If the Jaguars are receiving signals, they will flash red or green (according to the direction). If they flash and the motors still don't move, the problem lies in the motor or the connection between the Jaguar and the motor, or the motor is faulty.

By the way: if you will notice, there's a global variable "LED toggle rate (ms)" which is used to flash the User LED in Periodic Tasks. Make sure to remove that if you plan on using the User LED.


Also post here any errors you see in the Diagnostics tab.
Reply With Quote
  #5   Spotlight this post!  
Unread 13-01-2012, 14:18
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,749
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Jags not taking data

Make sure you performed the fix for the DB37 cable found here:

http://www.usfirst.org/sites/default...structions.pdf
__________________
Quote:
The views expressed are mine and should not be construed to represent the views of anyone else.
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 20:40.

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