Hi PankajllSc,
From the code you have attached, Daqmx create channel is now set to "analog input". In order to generate the output, you will need to change the setting to analog output.
Another suggestion would be move the VI outside the while loop as the channel only need to be created once.
You can also study on how to use DAQmx by browse through the example provided by NI. The example located as follow,
Help -> Find Examples... -> Hardware Input and Output -> Daqmx -> Analog output
Hope this help
Best regards,
Tui