![]() |
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? |
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 |
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) |
| All times are GMT -5. The time now is 17:55. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi