I am using the USB 6218 to run 2 NI task at the same time in my vi. One task is acquiring a pressure transducer voltage and scaling it. The other task is count frequency pulses from a flow meter and scaling. Both task run fine when I run them in Max, or run them individually in my vi as a sub-vi. But when I try to run simultaneously I get erroneous reading from the counter. It seems like the counter is loosing its task after its first reading. Each task is written in its own sub-vi which takes one sample, and I am sure the task has stopped before the other task begins. I am not getting any errors, but I have to shut down and restart the computer to clear the counter task before it can start reading correctly.
↧