LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple channels in.......multiple channels out

Solved!
Go to solution

Hello All

I have attached a zip file which containe some vi's. The vi's are downloadable from a manufacturers webiste to aid in the use of their products.

 

see here:  http://www.phidgets.com/products.php?category=0&product_id=1018_2

 

The vi(s) are used with a board that has 7 digital inputs (0,1,2,3,4,5,6,7). However the attach vis' only allows a single channel read.

 

I will be reading a pulse train at each channel input, but don't want to replicate the code for each channel.

 

I have considered using a For Loop to handle the polling through the channels (with an array attached to the vi channel input control), but how to go about indicating the output of all the channels ( a puls train remember), I am totally at a loss.

 

Could you please suggest how I might modify the vi to allow all 7 channels to read a pulse train appearing at the inputs, and display it either as a graph or boolean (doesn't really matter which)

 

Thnaks for your assistance

 

Regards

Ray

 

 

 

 

 

0 Kudos
Message 1 of 5
(2,941 Views)
Solution
Accepted by topic author rayclout

I am not sure how your hardware would work, so you may have adjust the timing/s. For now I have disabled the h/w acquisition section and I'm generating random data. Hope this helps.

multiple channels.png


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 2 of 5
(2,931 Views)

Hello .:aCe:.

 

That worked a treat. Thank you.

 

I can't see an easier way of doing it, so do you mind if I hijack this little snippet of code to use in my application?

 

I will mark this as the solution and give you the k's

 

Regards

Ray

0 Kudos
Message 3 of 5
(2,913 Views)

Ace,

 

Your Decimate Array/Build Array combo looks like it could be replaced by Reshape Array.  I don't know exactly what you are trying to do, so I can't say for sure.

 

 

0 Kudos
Message 4 of 5
(2,904 Views)

Ravens Fan,

I was trying to extract every 8th element in to an array. This is an Implementaion using reshape array.

multiple channels_modified.png

 

@Ray: please feel free to use the code as you wish, glad I could be of help.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 5 of 5
(2,893 Views)