Go to Post The discussion and helpfulness that goes on within this website is a great example of gracious professionalism. - andy.vangessel [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-01-2009, 12:58
angelkat angelkat is offline
Registered User
FRC #1561
 
Join Date: Jan 2009
Location: Oklahoma
Posts: 2
angelkat is an unknown quantity at this point
reading multiple digital inputs

Is there some way to read 8 or so inputs from the digital side car instead of one at a time?

Does anyone have any program for that?
  #2   Spotlight this post!  
Unread 24-01-2009, 20:09
drkiraco drkiraco is offline
Registered User
FRC #1747
 
Join Date: Jan 2009
Location: Lafayette IN
Posts: 23
drkiraco will become famous soon enoughdrkiraco will become famous soon enough
Re: reading multiple digital inputs

no, but it's easy enough for you to write your own. in labview, just set up the program to read each input one at a time. build an array with the results if you feel like it, then drag a box around all 8 reads to highlight then, and do Edit->Create Subvi.

OR

create an array of DigitalInputDeviceRef and then build a For loop to read each one. you can use automatic array indexing to make this very easy
  #3   Spotlight this post!  
Unread 25-01-2009, 00:22
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: reading multiple digital inputs

This works pretty much the same in Windriver--basically, you create a function that updates an array with current values every time it's called, and then use that array.

I'm not quite sure why you would want to do this though--really, the code to read all the inputs at once would be more than the code to read them individually(since you have to store them and retrieve them from an array)
__________________
Get yer robot source code here!
Closed Thread


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
Reading NES controller from digital inputs bear24rw Programming 10 07-04-2007 01:17
Digital inputs in autonomous mode? Calvin Programming 8 18-02-2006 13:16
Edu Robot Multiple Inputs jrmarenda Programming 2 24-11-2004 13:22
Digital inputs, bandwith, errors? Micah Brodsky Programming 7 20-01-2003 16:08
Analog vs Digital inputs? f22flyboy Programming 8 08-11-2002 22:18


All times are GMT -5. The time now is 03:14.

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