Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

DIO-Clock!!!!

Hey swami,

If you want to output a bit on each clock high, then you are going to want to do correlated DIO, but I am a little confused by your pattern logic.

You say that 1000 0000 0000 0000 0000 is MUX 1 and Line 0 (INP0).  Does this imply that 1000 = Line 0?

You also say that 0000 1001 0000 0000 0000 is MUX 2 and Line 9 (INP9).  I take this to mean that 1001 = Line 9.  1000 = Line 0 and 1001= Line 9 does not make sense.

I can write example that allows you to select the MUX # and Line # and will return according to the following logic:
MUX 1, Line 1: 1000 0000 0000 0000 0000
MUX 2, Line 9: 0000 1001 0000 0000 0000

Can you provide further examples to help clarify what logic you need?

Thank you,
Erik J.
National Instruments



Message 11 of 13
(1,238 Views)

Hi! Erik,

thanks for ur reply.

As I told you, 5 Mux IC connected Serially. For Selecting One IC I need 4 bits. That 4 bits make truth table and select INP0 - INP7. for selecting any input of those 5 IC I need 20 bits which are shifting one by one. If I talk abt only first MUX and 4 bits the pattern should be, 1000 - INP0, 1001-INP1......1111-INP7. like that. All five IC connected serially, we can select only one input at a time. If i want to select INP0, I have to shift 20 bits and pattern should be 1000 0000 0000 0000 0000. It will select only INP0 and gives the analog voltage of INP0. like that I have to measure INP0 - INP39.

second example, If I want to select INP8, than line 0 of second mux- so pattern should be 0000 1000 0000 0000 0000.

"1" shows Enable.  for INP17, line 1 of MUX3, so pattern should be 0000 0000 1001 0000 0000.

For INP 39, line 7 of MUX 5, so pattern should be 0000 0000 0000 0000 1111.

This works automatically one by one and select each line and write the status of each line.

thanks

0 Kudos
Message 12 of 13
(1,236 Views)
Hi swami,

Thank you for the clarification, I understand now!  I have written a small example that executes the bit logic that you demonstrated here in LabVIEW.  I believe this example is a good starting point for you, I hope it helps!

Regards,
Erik J.
Message 13 of 13
(1,221 Views)