Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

DIO-Clock!!!!

Hi!
I have PCI-DIO-6503 card. I need some help. I want to know that how to generate clock and CS (chip select) through DIO for selecting appropriate chip?.
 
 
 
0 Kudos
Message 1 of 13
(5,585 Views)
I am using DIO-6503. I have trouble to generate clock singnal for Analog Multiplexer. I will use clock signal, chip select and datain signal from DIO for selecting analog multiplexer.
please let me know how to generate clock signal.
 
thanks
 
0 Kudos
Message 2 of 13
(5,572 Views)

Hi swami1,

The PCI-6503 DIO card is a static DIO device so it does not support hardware timing.  If you wanted to generate a clock from the card, you would have to use software timing and output on one of the digital lines, setting the line to high, then low, then high again, etc...  This won't give you a very fast or stable clock, but it may work for you.

If you need a card that has a counter/timer, then I would suggest the USB-6501 or PCI-6602.

I hope this helps, please let me know if you have any other questions.

Regards,
Erik

 
Message 3 of 13
(5,559 Views)

hi!

Thanks!!!

I will use shift register for continuous clock and at the positive edge (high), i will have to send data. When the clock is high that time i will have to send data bit by bit. so can you explain me how do i make vi ?

thanks

 

0 Kudos
Message 4 of 13
(5,557 Views)
Hey swami,

You're welcome!

I have attached a VI that uses a software timed clock (i.e., the clock is controlled by a while loop in LabVIEW).  Keep in mind that this clock will be slow (below 1000 Hz) and might not be stable.  When I tested it though, it seemed to work great!

I hope this works for you!

- Erik
0 Kudos
Message 5 of 13
(5,548 Views)

hi! Erik,

Thanks, You have solved my problem.

I need again your help. I am making one test system .I am new in this kind of programming.  Few lines of DIO are connected to Decoder which works according to DIO o/p. can you help me how to interface DIO and Decorder through software.

Thanks

 

 

0 Kudos
Message 6 of 13
(5,534 Views)
Hi Swami1,


Can you explain little more if by encoder do you mean reading "n" inputs and turn on one of the 2^n outputs?
I have attached a small LabVIEW example that will do this for any "n".
Hope this helps,
Gerardo O.
RF SW Engineering R&D
National Instruments
0 Kudos
Message 7 of 13
(5,507 Views)
Thanks fro your reply.
 
Actually, what I have to do, I have DIO. Which is connected to Analog MUX. So after passing data bit by bit Shifting, which will select appropriate lines of the MUX. 4 bits are required for selecting any lines out of 8 lines of one IC. Than after shifting the bits for selecting another inputs of another IC. Total 17 ICs. connected serially so 136 inputs and needs 68 bits for finishing one cycle.
 
Thanks
 
 
0 Kudos
Message 8 of 13
(5,489 Views)
Hello Swami1,

Do you need to give to this decoder the binary code in serial formal? If you do, you can do this as Erick suggested before (software timing).

If not you can only use the program I posted before to generate the binary code. Could you give a detail description (probably an example) of the application and who exactly works?
Best Regards,

Gerardo O.
RF SW Engineering R&D
National Instruments
0 Kudos
Message 9 of 13
(5,463 Views)
Hi!Yardow,
Thanks for your reply.
 
I have to shift 20 bits through DIO. Each 4 bits select one line of Multiplexer. Total 5 lC, connected in series. We can send one bit at a time when clock is high. so each 4 lines makes truth table and select one line at a time of MUX.
e.g. If I have to select INP0 line of MUX1 that I will have to shift 20 bits and make pattern of 1000 0000 0000 0000 0000 so it wil select MUX 1 and Line 0 (INP0). If, I have to select INP9 lines than pattern should be 0000 1001 0000 0000 0000 of MUX2.
4 bits select 7 lines of each IC (Meance INP0 to INP7) like that.
how to  send bit pattern so i can select each line at a time.
 
Thanks
0 Kudos
Message 10 of 13
(5,449 Views)