DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I implement a 16-bit encoder?

Solved!
Go to solution
I need to read 16 TTL outputs and determine the value of 16 parallel bits and make a decision from that value. How do I do that? Would this be done using a Black Box?
0 Kudos
Message 1 of 5
(7,020 Views)
Solution
Accepted by topic author Williamx
There is a Mathematics Group module called Bit Mask that will allow you to combine the 16 digital channels into a single word -- and then be able to read it as a single value.
Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 2 of 5
(7,014 Views)
Excellant CJ! Thanks very much again for your help!
0 Kudos
Message 3 of 5
(7,006 Views)

Sorry CJ, I jumped to the conclusion that I could implement my "16-bit in to integer out" converter with the Bit Mask module, but I don't understand how the integer output is presented and what special settings I need to make internally to the module settings to get it to do this. Can you give me some more details?

 

Thanks,

Bill

0 Kudos
Message 4 of 5
(7,004 Views)

Here's an example. It's V11.

 

I used a Switch module to simulate the TTL channels -- then used the Combine/Extract Bits mode of the Bit Mask module. The  output value is displayed as an integer, and then I used a mode of the digital meter to display the binary and a mode of the Status Lamp to display the bits.

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 5 of 5
(7,002 Views)