Hello:
Jochen is absolutely correct about DAQmx being a true multithreaded driver. However, you still can not have two analog input tasks for the same device at the same time. This is because a task must reserve the hardware resources and keep those resources until it is completed. To have two tasks running and requesting the same hardware resources will not work. The same problem will occur in traditional DAQ using the AI read VIs. Your best bet it to use the single-VI DAQ VIs to Open, Read, and then close the resources on every loop iteration. Since you want to read 2 channels (each in a while loop), I suggest something like the image of a front panel and block diagram I have included...
Good Luck!
Sincerely,
Brooks B
Application
s Engineering
National Instruments