06-04-2023 01:34 PM
I have a problem where I need to measure power on three separate lanes with different power supplies (12V, 5V and 3,3V), however, my PCIe DAQ can only measure voltages up to 10V. To get good measurements I need to know the exact voltage on all lanes as well as the voltage drop over some shunt resistors. As advised in: DAQ change input voltage range I have built up the following resistor divider bridges:
I am measuring the voltage in single ended ground referenced mode and the voltage drops over the shunts in differential mode. Problem is that the 5V and 3,3V seem to provide sensible readings while the 12V is inaccurate. I am expecting voltage drops in the order of 0,01V and when I measure with finite samples I get a sinusoidal with a mean value of 0,1V so 10 times the expected. If I change to continuous mode it becomes even worse with a measured voltage drop of about 0,5V so 50 times the expected. If I change both ai5+ and ai5- to single ended ground referenced and subtract them in software I seem to get a reasonable value but I am unsure if it is actually correct since I don't know what causes the problem. Can anybody give me an insight?
06-04-2023 05:50 PM
@Károly wrote:
I have a problem where I need to measure power on three separate lanes with different power supplies (12V, 5V and 3,3V), however, my PCIe DAQ can only measure voltages up to 10V. To get good measurements I need to know the exact voltage on all lanes as well as the voltage drop over some shunt resistors. As advised in: DAQ change input voltage range I have built up the following resistor divider bridges:
I am measuring the voltage in single ended ground referenced mode and the voltage drops over the shunts in differential mode. Problem is that the 5V and 3,3V seem to provide sensible readings while the 12V is inaccurate. I am expecting voltage drops in the order of 0,01V and when I measure with finite samples I get a sinusoidal with a mean value of 0,1V so 10 times the expected. If I change to continuous mode it becomes even worse with a measured voltage drop of about 0,5V so 50 times the expected. If I change both ai5+ and ai5- to single ended ground referenced and subtract them in software I seem to get a reasonable value but I am unsure if it is actually correct since I don't know what causes the problem. Can anybody give me an insight?
Is "1m" really 1 milliohm? Or did you mean "1M" - 1 megaohm?
06-04-2023 05:56 PM
Can you please show your code, how you are calculating the voltage in your software?
Rememba Ohm’s law and voltage divider formula and try to apply these formulas in your code, but it would be nice to see your code as well.
06-04-2023 06:00 PM
This seems like a pure hardware question, nothing to do with LabVIEW programming. See if you can find a more suitable board and I can move the tread for you.
06-05-2023 09:31 AM
Yes, you are correct: 1m is 1 milliohm (small current shunt) and 10M is 10 Megaohm.
06-05-2023 09:37 AM
I am not calculating power yet. At this stage I'm only trying to measure correct voltage rails and correct voltage drops over the current shunts.
Here's the problem:
On the left is the voltage drop over the 12V shunt and on the right is the 5V one. They both should be roughly 0,01V with some noise, however the 12V one is a sinusoidal with an incorrect amplitude.
Here you can see the relevant code for the continuous measurement. Again the drop over the 5V shunt is reported correctly to be roughly 0,01V while the drop over the 12V shunt is incorrectly measured as 0,5V.
06-05-2023 09:40 AM - edited 06-05-2023 09:44 AM
You haven't mentioned what exact DAQ card this is supposed to be. I'm particularly "surprised" by the fact that the first 4 analog inputs seem to be single ended while the remaining 3 (4) seem to allow for differential operation. Depending on the actual card the negative input of those (differential) channels, may or may not be a valid input when operating in ground referenced mode!
Only higher end cards will support mixed mode operation with some being differential and others being single ended.
06-05-2023 09:44 AM
Dear Rolf,
Thank you for your answer. I'll update the question with this detail. The card I am using is a PCIe-6353 Series X DAQ.
06-05-2023 09:49 AM
I still insist that this thread is in the wrong place. Nothing to do with LabVIEW programming.
Should I move it to Multifunction DAQ or Signal Conditioning? (... or elsewhere).
06-05-2023 10:39 AM - edited 06-05-2023 10:54 AM
Not LabVIEW related however:
First thing: Take a look at the spec of your DAQ
https://www.ni.com/docs/de-DE/bundle/pcie-usb-6353-specs/page/specs.html
Fig 1 show the settle time error of this multiplexed card. What value was your source impedance ? (even 1M is not shown in this double log diagram :D)
Way out: Use buffer amplifiers for the analog voltage readings and use highside current monitoring instrumentation amplifiers for your shunts. Reduce the 10M to 500k for the voltage reading . If you want to read faster than DC check for impedance compensation.
EDIT: If possible move the shunts to GND, but still use 2 wire true diffential reading. Every wire is a resistor, every current in a resistor leads to a voltage! if you now use 1k resistors as voltage devider and choose a slow sample rate, you migth get some not too wrong results without active amplifiers.
And finally try to avoid multiplexed input cards! Nothing but trouble!