Hi gang,
The -10240 error means that LabVIEW cannot find the DAQ drivers. When installing National Instruments software, make sure to install all versions of LabVIEW first, then install the NI-DAQ drivers. When the drivers install, the installer checks to see what software is installed, and istalls support for those programs. Also, make sure to uninstall any older versions of the driver before installing the newer versions. I found a Knowledge Base entry that talks about some other causes of this error:
http://digital.ni.com/public.nsf/websearch/E6D9288AE28A78718625658B0003F699?OpenDocument
I hope this information helps.
Have a great day,