There is a shipping example that shows PWM if you have installed
NI-DAQmx. You can open the example through Help >> Find
Examples >> Hardware Input and Output >> DAQmx >>
Control >> General PWM-Counter Output VI.
Good luck!
Micaela N
National Instruments