Hi, If you have labview package, you can find lot of examples there.
Start Labview -> Help Menu -> Find Examples-> Hardware input and output -> DAQ -> Here you either you can go to analog input -> then general -> search vi as per your requirement. Or you can use timer/counter/digital input & output example vi from here. Hope it helps. Your feedbacks are welcome. Best Regards, Nirmal