From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-29-2015 06:30 PM
As the .vi file I try to read analog input to my algorithm. Then I still stuck with error only on Daqmx. Now I used 1 sample on demand, differential type. Please help me to solve this solution. I used NI-USB6009 but still cannot be work. Ai0,Ai1
05-29-2015 08:05 PM
For myself, I prefer to never use Express VIs if I can avoid them, as they hide/obscure what is being done (for example, why use a Formula node for such a simple operation?).
Does your code work if you diagram-disable one of the two While loops so that you are only trying to read from a single DAQmx device?
Bob Schor
05-29-2015 08:16 PM
You have two tasks trying to access the same circuitry on the card (the mux and ADC). That is simply not allowed. You need to combine your two loops and use a single task to read the DAQ channels.
05-29-2015 08:34 PM - edited 05-29-2015 08:38 PM
But not the same port,(AI0,AI1) and the if we cut one loop out. Sure it work. we just need something to read 0-5 volt with two chanel.
05-29-2015 09:22 PM