ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

read from decoder output

I have DAQ (USB 6009), let said i would like to read the digital output from decoder and then should in decimal value on front panel, how should I do?

How I design the block diagram?

Please should me some example or simple design....

Thank you very much

 

0 Kudos
Message 1 of 5
(3,358 Views)
Can you give more information on your decoder output?
How fast is the output change in term of frequency?
How many line decoder output have?
0 Kudos
Message 2 of 5
(3,347 Views)

Sorry, i got some mistake, is output from encoder not decoder.

It is 16 to 4 encoder. For example, when the output is 0001(binary) is it possible for read it by using only one digital input of my DAQ?or i have to use 4 for each?

 

0 Kudos
Message 3 of 5
(3,345 Views)

Since your reply is not clear, I gues that you use those kind of chip reading from 16 inputs.

If any of them is pressed, binary output will change according to it.

Then, 4 lines 4 digital inputs.

You can find an example from Help>>Hardware Input and Output>>Find Examples>>DAQmx>>Digital Measurements>>Read Dig Chan.vi.

Change lines to <your DAQ Name>/<Your port>/line0:3, and use Boolean Array To Number function to translate it to decimal.

0 Kudos
Message 4 of 5
(3,342 Views)

You means I have to connect 4 output line of encoder to the digital input from line  0 till 3 right?

0 Kudos
Message 5 of 5
(3,333 Views)