Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How can we generate a pulse train with variable inster pulse delays?

I want to generate a pulse train with random inter pulse delays (100us-10000us) and the pulse width would be 50-100us. I programmed for single pulse generation using counter cfg,a for loop contaning set attribute parameters pulse spec 1 and pulse spec 2. I changed the pulse spec 1 value in every cycle
This program is generating the pulses but not the exact values in the sense the some times the delays are more than 10 msec. As per the program the delay should be maximum 10 msec. please help me ASAP.

thanks
thota
0 Kudos
Message 1 of 2
(3,162 Views)
Hey Thota,

I would suggest to take a look at the example program linked below. It shows how to change pulse specs on the fly. You have to be make sure you are ignoring a certain error when doing this.


Pulse Train Generation with Changing Pulse Specs (PWM)
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E21756A4E034080020E74861&p_node=DZ52328&p_source=External

I hope this helps.

Regards,

Todd D.
NI Applications Engineer
0 Kudos
Message 2 of 2
(3,162 Views)