Vishal,
What error are you receiving? From the information you have provided, it appears that you want to acquire data between a start and stop trigger. Is this correct? If so, you should examine the Start & Stop Trig Input.vi example. Otherwise, a detailed description of your application may be useful.
Good luck with your application.
Spencer S.