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