Hi Gavita,
To configure a channel to start from a trigger you need to configure the trigger part of the application. Have a look in the example finder for the Write Dig Chan-Int Clk-Dig Start VI. It will be under Hardware Input and Output >> DAQmx >> Digital Generation.
The way the program is currently writen, you're starting the Digital channel straight away, it's not waiting for the analog wave to go positive.
If you want it to start when the wave you're generating goes above a certain level you could use a case structure to make a software decision on when to start the acquisition. Have a look through the help for more information on case structures.
I hope this gives you a guideline. If you've further questions on any of this just post and I'll look into it for you.
Good luck!
Sarah B
NI | UK
Sarah
Applications Engineer | National Instruments | UK & Ireland