Go to Post If you have the time to be caught up on Delphi and the Q&A forum, then you have time to go write a WFA entry. No more excuses. Go! Write! Now! :) - Jessica Boucher [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-2011, 11:07
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: What VI to use with the line detector?

In case j.cole wasn't clear enough, I'll expand on what he said. The photosensors connect to a DIGITAL I/O pin on the Digital Sidecar. Only one of the black or white wires needs to be connected; one of them provides a signal when the photosensor is detecting an object, and the other provides a signal when it is not. Those pins are read using the DIO In functions (WPI Robotics Library >> IO >> DigitalInput).

The Robot Framework with Game Code project shows you how to use three photosensors to follow a gray line on the carpet. It's all in the Autonomous Independent vi.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2011, 12:13
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
Re: What VI to use with the line detector?

IDK if this will help but this is how my mentors explained this to me...
Because the photosensor doesn't have its own coding it doesn't need its own VI. It is just a DIO and thats all that is required, although a DIO get vi is still needed...
(I put that in there because i accidently made the mistake of forgetting the Get vi.)
__________________

jRIO 2013 Project
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 21:13.

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