View Full Version : reading multiple digital inputs
angelkat
24-01-2009, 12:58
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?
drkiraco
24-01-2009, 20:09
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
nathanww
25-01-2009, 00:22
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)
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.