Hello;
The NI-DAQ driver is not a multithreaded driver, meaning that in case you have more than one request, at the same time, for the same resource, you might get an error.
In case you need 5 different tasks running at the same time, the best way to do that is to combine all 5 tasks on the same code.
Regards
Filipe A.
Applications Engineer
National Instruments