Hi Manasa,
Make sure you are handling your errors in your code. You can do this by wiring your error clusters through your VI and then terminate them in a General Error Handler VI. If you are doing this, make sure that your device works in Measurement & Automation Explorer (MAX). Do this by opening a test panel and verifying that you can get a known voltage (like a battery) to read correctly. If you can successfully get a voltage in MAX, try running one of the example programs. You can find them at
Help » Find Examples..., then browse to hardware input and output. If you can get an example program that is similar to what you are trying to do to work, try comparing your code to the example.
Please post back if you have any questions. Have a great weekend!
Ryan D.
District Sales Manager for Boston & Northern New England
National Instruments