Go to Post First, corndogs and now cowbells... when will you make the pain stop, Frank?!?!?! - barn34 [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 29-01-2009, 21:38
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
DIO not working in autonomous.

We are trying to do something that should be very simple. We are trying to read a switch hooked up to module 4, channel 1, and based on its value turn on an LED connected to module 4 channel 6.

The switch is wired from signal to ground so that an open switch should return "True" and closed should return "False". By using a multi-meter, I have verified that the signal line switches between 4 volts and ground with the switch open, then closed.

The LED is wired from the +5v line to signal, so that the signal pin provides the ground for the LED. I verified that the LED works by connecting it between +5v and Gnd lines on the digital breakout board.

This is all basic stuff we did on last years controller successfully. The problem is that the Labview program doesn't see the switch signal pin changing at all, and the signal line connected to the LED never changes from 4.0v.

The code for the autonomous portion is included below. Someone please tell me what simple thing we have overlooked. I know I am going to feel stupid when I see the answer, but we have stared at this for 2 days now without seeing what is wrong. We know it is running the autonomous code as the numeric indicator increments as expected. Neither the boolean indicator or the LED ever changes state.



Thanks,
__________________
Adam Bryant
Programming Mentor
Team 1583
Ridge View Academy Rambotics
Reply With Quote
 


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