Sophie,
Can you verify that you have traditional DAQ installed? If you open MAX, then expand the software tab do you have "Traditional NI-DAQ" listed? If not, then this would explain why you are seeing the -10401 error. If you do not have it installed you should be able to download it from this site:
http://digital.ni.com/softlib.nsf/websearch/C36A54ADDA3DC33D86257038004E55E6?opendocument&node=13206...
If it is installed then when you expand the "Devices and Interfaces" tab, you should have 2 categories, DAQmx devices and traditional DAQ devices. You should expand the traditional daq devices tab. From here you should be able to run Traditional DAQ's test panels on the device. If this works, then you have verified that your drive is installed correctly and that your device is also functioning. If this is the case, then something you are inputting in your VI is likely in error. If this is the case, feel free to save the VI (make the values you are attempting to use default before saving) and post it here. Also, if you could post the version of NI-DAQ you have installed as well as the hardware you are using it may be helpful.
Hope this helps,
Dan