Hai Linh,
To change the duty cycle you will have to modify the Waveform Buffer Generation VI in the example I showed you. To do this double click the the Waveform Buffer Generation VI block and it will open its block diagram. Next, look for the Basic Function Generator VI. This VI has an input for the duty cycle. You can either create a constant here for the duty cycle or wire a control to have it as an input on the original examples block diagram.
As far as the offset goes, where are you configuring this? This should be configured on the same Basic Function Generator VI as mentioned above. I was able to test this and received the expected results.
Regards,
Chris Delvizis
National Instruments