Go to Post I also exclusively use FRC team numbers when punching in times for the microwave. - Calvin Hartley [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 11-02-2012, 15:38
ThisIsSparta's Avatar
ThisIsSparta ThisIsSparta is offline
Registered User
FRC #3494 (Quadrangles)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Bloomington, IN
Posts: 17
ThisIsSparta is an unknown quantity at this point
Inverting Up/Down Counter Input

I'm trying to use the premade Up/down counter to count the number of balls in the robot. Two IR sensors give out a digital input that can be plugged into the up and down sources on the counter. The problem is, the sensors give a natural true when nothing is detected, and give a false when something is detected. I know that normally when using them as straight up digital inputs a simple not function, ut with the way that the DOIs plug into the counter Open VI, using the Dig Src, I don't know how to invert the outputs of the DIOs so that the counter functions properly. (with the sensors as is, uninverted, they constantly add and subtract one so that the output is useless) Thanks in advance for any help!
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2012, 15:52
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: Inverting Up/Down Counter Input

The counter open in up/down has inputs for whether it should trigger on the rising edge, falling edge, or both edges. It sounds like you want the falling edge.
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:11.

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