Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

how to generate digital output of variable duty cycle and clock source being counter?

Solved!
Go to solution

 

thank u WanL for ur reply. 

u described abt varying duty cycle without using counter by regenerating pulses in a loop. but in this case i also want to vary frequency of the two digital pulse trains. 

waiting for ur response..

 

0 Kudos
Message 11 of 15
(3,250 Views)

Your sampling rate is fixed by the sample clock. If you want your output frequency to change, you can vary the number of samples per period of the waveform that you generate on each iteration of the loop. 

Wan L
Applications Engineer
National Instruments
http://www.ni.com/support
Message 12 of 15
(3,241 Views)
Solution
Accepted by topic author dg7318

i got this code modified

Download All
0 Kudos
Message 13 of 15
(3,172 Views)
Solution
Accepted by topic author dg7318

also download this

Download All
0 Kudos
Message 14 of 15
(3,171 Views)

thank u wanLfor ur help.

0 Kudos
Message 15 of 15
(3,168 Views)