Hello;
The problem there is that you are probably using a version of NI-DAQ that doesn't support the DOS function calls that you have on your code. Furthermore, if you install the NI-DAQ version that supports your code, that probably won't support the OS.
Unfortunately, the only way to go about that is to rewrite the code to use the available function calls that the new NI-DAQ driver supports.
Regards
Filipe A.
Applications Engineer
National Instruments