Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate a TTL pulse whose frequency should be N times slower than a input TTL pulse (DAQ NI USB 6259)

I have an DAQ NI USB 6259.

 

I receive input TTL pulses with freq 25 Hz. I would like to create an output pulse 5 times slower than the input pulse. Is this possbile to achieve?

 

Thanks

0 Kudos
Message 1 of 2
(5,731 Views)

Yes, absolutely.  Here's an example to get you started.

 

(One small note: when you divide by an odd number like 5, this method won't produce a square wave out with exactly 50% duty cycle.  In many (most?) apps, this isn't really a concern because only the rising OR falling edge really matters.  But just in case, I wanted to mention it.)

 

-Kevin P

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 2 of 2
(5,723 Views)