Hello;
The best way to go about that now is to completely uninstall all National Instruments Software you have on that machine and restart from scratch.
Also, download the latest NI-DAQ version (6.9.3)we have available at www.ni.com, remove from the machine the hardware you have, install NI-DAQ and reboot the machine.
Reinstall the hardware and test the boards in MAX. If everything is working well in MAX, you should be ready to go ahead and test the previous code that was giving you the error.
Hope this helps.
Filipe A.
Applications Engineer
National Instruments