Kevin has provided good solutions, but I thought I'd just throw this out there as well. If you're only using one of the analog outputs in your application you could also just use both, generate a sine wave on one and a square wave on the other. You could start from the Cont Gen Voltage Wfm-Int Clk.vi example (Open LabVIEW and go to Help» Find Examples... Then navigate to Hardware Input and Output» DAQmx» Analog Generation» Voltage» Cont Gen Voltage Wfm-Int Clk.vi). This example generates a sin, square, saw, or triangle wave and you could modify it pretty easily to output a square wave and sine wave on each of the analog output channels.
However, if you're already using the other analog output I would recommend following Kevin's suggestion.
Cheers!