Hello
DAQmx support multitasking operations and you are therefore able to execute multiple tasks at the same time.
I do not know what software you are writing your code in, but if you are using LabVIEW you should just place the two tasks in parrallel loops and execute them or have both VI's runninng at the same time that are performing the tasks!
Regards
Mohadjer