06-07-2024 01:44 PM
I am using the nidaqmx library in python. When I attempt to read the voltage from 3 ai channels at once, I observe a strange phenomenon in which the voltage along my (Dev3/ai3) channel follows the trend/is proportional to the voltage along my (Dev3/ai0) channel. Dev3/ai1 however is completely independent and functions as expected. Dev3/ai0 also displays the voltages I expect. However, Dev3/ai3 mimics the voltage detected along ai0.
However when I only add Dev3/ai3 to the task, I read the voltage that I expect to see.
Below is an image showing the expected behavior of Dev3/ai3
As seen above, readings are appropriately in the negative thousands.
However, as seen above, when reading multiple voltages, the current data follows the trend of the dev3/ai0.
My code is attached below
Solved! Go to Solution.
06-07-2024 05:18 PM
You may be experiencing ghosting
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHy6CAG&l=en-US
Can you share your hardware connections?
06-11-2024 02:17 PM
I looked into it, and it appears that ghosting is in fact the issue. The impedence of my current source is very high as I use a transimpedence amplifier to generate the signal. Therefore the settling time of the daq is very high and results are all messed up when multiplexing.