Hi AINIA
I've succesfully reproduce your error. What are you trying to accomplish? It seems you are reading 100 samples at a rate of 1000 samples per second, but you are only displaying the last one.
The error seems to be produced because you are trying to close a task that is already closed. In order to do continous acquistion, try this link
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=C60E158A108C26A7E034080020E74861&p_node=174961
There is also an on-line tutorial that uses USB-DAQ, but applies to your case
http://zone.ni.com/devzone/conceptd.nsf/webmain/C1EA00A64C9948BC86256FE800698BC3
Hope this helps
Javier Gutiérrez
NI Aplication Engineering