02-02-2024 05:20 PM
A LabVIEW program is currently reading fluctuating amperage readings. The problem started after the installation of an Omega TX86. The program read the milliamps (4-20) of an Omega TX64 through an NI USB-6211. The program worked fine for several years and I didn't create this program. Then the Omega TX64 died and it is no longer made. It was superseded by the TX86. The settings of the TX86 are the same as the 64. This was confirmed by calling Omega. The 86 doesn't use a ground wire, which was never attached to the DAQ. The TX86 has more abilities than its predecessor but aren't needed.
The TX86 reads the temperature accurately on its digital display. However, the readings fluctuate wildly in the LabVIEW program. A multimeter was used to read the amperage readings. On the multimeter the amperage readings are stable and rise and fall as expected. The LabVIEW program was cut up to focus on this problem.
Other things that have been tried: changing the USB cable, switching the USB-6211 with a MyDAQ, changing Ai ports, switching between amperage and voltage readings in LABVIEW, and adding a shunt resistor.
It keeps fluctuating. It should be reading a steady 6 amps at the current temperature. Any help would be appreciated in resolving this.
02-03-2024 04:08 PM
If swapping the 6211 with myDAQ still resulted in fluctuations, then it is a possible software or electrical issue outside the DAQ.
02-06-2024 11:18 AM
Hi Santhosh,
Thanks for replying. I found it strange that the multimeter has a stable reading of the amperage change but the DAQs don't. Any ideas what might cause that? I found the line also has a voltage under 5V.
02-06-2024 12:51 PM
The multimeter has a slow update rate, i.e., sampling rate, which averages out the fluctuations, whereas the DAQ samples at a faster rate and hence can observe events at a smaller time scale.
02-06-2024 03:35 PM
Just a couple of comments that may help you track things down:
02-08-2024 06:27 PM
Hi Andy,
Thanks for responding. I'll answer your points to the best of information that I have:
I have tried to slow down the sampling rate to read the signal in the while loop but the noise is the same. I have tried as slow as 5 seconds. Is there another way to do this. From the data sheet on the TX86 it claims a 1 second response time. Would this cause the issue?
02-08-2024 08:56 PM
You shared new info that means something.
"This DAQ is taking another 4mA-20mA signal from another device and reading it fine." - what device and how is it connected?
Since you're a mechanical engineer, short note: the inputs of 6211 are not isolated, and any noise due to one channel will affect others.
This will not show in your multimeter because it is powered by a battery and isolated from the rest of the channel noises, and the same, I believe, is true for Arduino.
02-09-2024 03:45 AM
Yes if you have a second 4-20mA connection that looks like it is being read fine, a very quick test would be just to swap over which AI they are connected to - i.e. does the known working 4-20mA give the correct value in the sw when it is connected to the AI that is not working with the TX86. This will tell you if it is the sw (software) or external (wiring) that is causing the problems reading from the TX86. If the sw is not working you will at least be able to debug using a known working signal.
My guess is that it is a wiring problem, due to big random fluctuations in the current from the TX86. Did you connect a 24V DC power supply to power the 4-20mA as shown in the diagram. Even if you did, it is important to understand how that relates to the input circuitry of the AI module you have and what shoudl be connected to AI+, AI- and COM.
This forum post has an image that may help: https://forums.ni.com/t5/Multifunction-DAQ/Connecting-a-4-20mA-loop-powered-sensor-to-USB-6255/td-p/...
02-14-2024 06:27 PM
Do you know how to isolate the or eliminate the noise? I changed the power supply to see if it was the problem. The power supply wasn't the problem. It appears after all I've done noise is the problem.
02-16-2024 03:29 PM
It might help if you do a wiring schematic, showing *all* of the connections between the TX86, sensor power supply, the USB 6211 (or MyDAQ - not sure whcih one you are using). Does your IO module actually accept mA input, or is it a voltage input and you are using an external resistor to convert from mA to voltage ?
However, this forum post talks about noise and wiring for a USB 6211, and may help you work out where there may be something wrong:
https://forums.ni.com/t5/Multifunction-DAQ/USB-6211-noise-problem/td-p/2628867