Go to Post My wife got mad at me when I told her I wanted to name our daughter Lotus. "What you mean the software?" she squawked. "No I mean the flower." I said. geeks, I swear.... - Koko Ed [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 30-01-2009, 11:49
adamdb adamdb is offline
Registered User
#1583
 
Join Date: Feb 2005
Location: Parker, CO
Posts: 64
adamdb has a spectacular aura aboutadamdb has a spectacular aura aboutadamdb has a spectacular aura about
Re: DIO not working in autonomous.

Greg,
We did use the execution highlighting and did not see any errors (a previous version of the code passed the error signal through so we could look at it).

Phil,
If you look at the datasheets, the GPIO lines have a 10K pullup resistor. I did verify with a multi-meter that this was the case and that closing and opening the switch made the voltage at the signal line do what we expected. I also verified that NONE of the signal lines (set as outputs) changed output voltage when expected, so I don't think we have a numbering issue.

We also at one point added a switch to our Labview control panel and connected it to the LED and on-screen LED indicator. The on-screen indicator turned on and off just like expected, but the voltage didn't change on any of the GPIO signal lines.


Thanks all for the great suggestions. I know there must be one of those "Duh" things that we are doing wrong somewhere, but I sure can't see it yet.

Thanks,
__________________
Adam Bryant
Programming Mentor
Team 1583
Ridge View Academy Rambotics
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2009, 12:34
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: DIO not working in autonomous.

Quote:
Originally Posted by adamdb View Post
Phil,
If you look at the datasheets, the GPIO lines have a 10K pullup resistor.
D'oh, I was reading your post on my iTouch and was sure you were talking about the Driver Station.. Must have been the prior post.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2009, 00:28
adamdb adamdb is offline
Registered User
#1583
 
Join Date: Feb 2005
Location: Parker, CO
Posts: 64
adamdb has a spectacular aura aboutadamdb has a spectacular aura aboutadamdb has a spectacular aura about
Re: DIO not working in autonomous.

PROBLEM SOLVED!

As expected it was a hardware problem: Loose nut behind the keyboard (me).

It was an indexing issue (0 vs. 1). We had the switch connected to DIO ch 1 (according to the numbers on the digital breakout board) whereas the code needs to use 0 to access that channel. Why couldn't they have numbered the breakout board starting at 0?

I could have SWORN that we had run a test to check for this yesterday, but apparently not.

I was 99.9% certain it had to be a programmer problem and (sheepish grin) I once again proved myself right.

Thanks for all the suggestions.
__________________
Adam Bryant
Programming Mentor
Team 1583
Ridge View Academy Rambotics
Reply With Quote
  #4   Spotlight this post!  
Unread 31-01-2009, 03:06
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,563
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: DIO not working in autonomous.

From your picture, the red dots at the inputs of your opens is the clue. Those are coercion dots, which means the data types didn't match, but LabVIEW took its best guess.

Those expect an enumerated type, but you wired them to a integer constant. The best way to get the enumerated type is the right click on the input and choose create constant. From there you can use the drop down menu to select which one you want (for example, DIO 1). When you do it that way, the numbering on the hardware and in LabVIEW match.
Reply With Quote
  #5   Spotlight this post!  
Unread 12-02-2009, 01:23
adamdb adamdb is offline
Registered User
#1583
 
Join Date: Feb 2005
Location: Parker, CO
Posts: 64
adamdb has a spectacular aura aboutadamdb has a spectacular aura aboutadamdb has a spectacular aura about
Re: DIO not working in autonomous.

Joe,
Thanks for the suggestion. This is yet another of those items where Labview will help you out, but we didn't know that it would or how to do it.
__________________
Adam Bryant
Programming Mentor
Team 1583
Ridge View Academy Rambotics
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Camera Code not Working in Autonomous? Mikesername Programming 6 28-01-2009 10:14
IR Board Not Working (But NOT Fried) itsme Electrical 2 18-02-2008 06:11
Help Autonomous code not working team550 Programming 5 14-01-2008 10:35
Camera not working in autonomous Roger Programming 9 09-03-2006 07:38
Gyro not working in Autonomous? kaszeta Programming 7 11-02-2006 01:28


All times are GMT -5. The time now is 09:59.

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