|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |