Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How does one output a rectangular train on USB-6009 digital pins that has frequency of 10 KHz or higher?

Solved!
Go to solution

Hi,

I've got a USB-6009. I'd would like to use a digital line to output blocks of 25 rectangular pulses with max period of 100us and 50% to 75% duty cycle. The spacing between the blocks needs to be 60us or longer. This is what I tried, but it gives me a period of 2ms (500Hz).  Bildvorschau

I wonder if the USB-6009 is even capable of reaching 10KHz on it's digital outpu lines and if so what do I need to change in my VI to get such a rectangular pulse train.

Any help and advice would be greatly appreciated

Cheers!

0 Kudos
Message 1 of 4
(2,296 Views)

You cannot achieve your desired feature using USB-6009.

The product doesn't have internal clock for digital so, the generation timing is based on while loop rate.

But unfortunately, the loop rate is based on Windows Clock which is not precise.

 

You might generate desired pulse, 10kHz or 500Hz but, there are so much jitter.

You can achieve using a product which has internal clock for digital.

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 2 of 4
(2,284 Views)

Thank you Emboar! This is the VI I tried. It maxed at 500 Hz on Win 7Pro. No loop delay or clock was used. pastedImagefile.png

In your reply you mention I could have 10 KHz pulse train if I didn't care about jitter. How's that done in LabView for USB-6009?

Many thanks again!

0 Kudos
Message 3 of 4
(2,246 Views)
Solution
Accepted by topic author dnt2labview

Just repeat writing 0 and 1 to USB-6009 in while loop. I don't have any confidence that you can achieve 10kHz rate,

because it's strongly affected by Windows performance.

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 4 of 4
(2,237 Views)