Hello;
You can do that with the Analog Output channels of your DAQ device. To change the frequency, you just need to change the datapoints to output on the channels. You need to come up with a subVI that calculates the necessary datapoints to be output on the analog output channels, so the width is maintained as you change the waveform frequency.
Hope this helps.
Filipe A.
Applications Engineer
National Instruments