Hi Kevin,
Sorry that I did not upload the code before. Please find the code attached. It has been saved in LabVIEW 2012 version. I think I made a mistakes with the case structure and the timing which I am unable to figure out.
Thank you for your help. Please let me know if you need ant additional information.
Abbishek