Hi Waqar -
It might be best to post your solution in a new thread, where it has more visibility. I also recommend against displaying your email address in a post. Spam bots like to crawl the forums, and you could end up with a nasty inbox next week.
David Staab, CLA
Staff Systems Engineer
National Instruments