Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Measuring resistance using 6221

Hi guys, i want to measure the resistance between 2 points using my 6221 DAQ card.

I've searched through the example finder and i found 3 examples on resistance measurement. Now, since i only need to measure on a single instance value thus i tried using the first one (Acq Resistance Sample.vi).

However, in this vi it does not state how do i connect the points to my DAQ. Naturally 1 end would be to the physical channel that i've defined in the vi. For the other end i've tried using AGnd but it doesn't seem to work. I tried this vi using a resistor with a known value but i always get an incorrect value of -1k ohm.

Secondly, which do i select for the Resistance configuration section for this vi? Am i suppose to build a simple circuit before i can start measuring my desired resistance? And i can't use internal excitation source as it prompts an error saying that my DAQ card does not have an internal excitation source.

How do i proceed from here?

(Sorry, double posted in the signal conditioning section. Moderator please remove. thanks )
0 Kudos
Message 1 of 9
(10,627 Views)

Hi ATMA,

You can not measure resistance with your PCI-6221 directly.  You can either do a voltage divider method or you will need a constant current source and a formula (V= IR) to calculate the resistance.  This Developer Zone article explains how to measure resistance indirectly.  This Knowledge base explains how to make the connection for an E-Series device.  You are using an M-Series device so you will follow the same method but you will use the NI-622x pin out.  What break out board are you using?

National Instruments makes hardware to take resistance measurements.  This Developer Zone article explains how to take resistance measurements with our modular instruments.

Regards,

Ima
Applications Engineer
National Instruments
LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
0 Kudos
Message 2 of 9
(10,596 Views)
Thanks Ima. I've tried the measure from the 2nd link and it works! I replaced the AO with the +5V from the DAQ card.


However, since i'm measuring very low resistances (single digit, less than 3ohms) i notice very high fluctuations with my reading. At the moment i can collect multiple samples and average it out. But is there any better way to improve the precision of the measurement for such low resistance?
0 Kudos
Message 3 of 9
(10,576 Views)
Hi, ATMA. You should be able to measure your low-value resistor pretty well even without averaging. Maybe you could give a little more detail. For example:

1. What do you consider "very high fluctuations"? Is the variation on the order of ohms, hundreds of milliohms, or what?
2. What are you using for your known resistance? If the current is small (large value known resistor), then the voltage on the DUT will be small, and you'll see measurement noise.

Chris
0 Kudos
Message 4 of 9
(10,565 Views)
Hi Chris.

1. High fluctuations
Using a multimeter, the resistance i measured on my DUT is less than 3ohms. When i tried measuring with the configuration using the DAQ card, after the calculations my results can be within the range of 1.2ohms-5ohms. For a small resistance, this error rate can be pretty huge.

2. Known resistance
At the moment i'm just using a 2.5kohm 1% resistor for the known resistor. I thought using a low tolerance (1%) resistor would probably reduce the fluctuations. Is this assumption correct?

3. Ideally, do i want my DUT voltage to be higher or lower? I'm guessing higher voltage thus reducing the noise effect on the measured DUT voltage, am i correct?

4. I'm also concerned on the wires between the probes and DAQ cards as they might have an effect on the small R measurement of my DUT, what do you think?

5. The +5V pin from the DAQ which supplies this voltage divider is also connected to other components in the system. How would this affect the measurement? I'm guessing since everything else is connected parallelly to everything else, it shouldn't be a problem right?
0 Kudos
Message 5 of 9
(10,551 Views)
You're putting 5V across roughly 2.5k ohms, which means you're putting 2mA through your DUT. You're seeing noise of about 4 ohms peak-to-peak, which corresponds to 8mV p-p voltage noise. That's much higher than I would expect, especially if the 6221 is configured to use the 200mV range for the DUT measurement, which it should be for minimum noise. Perhaps you're picking up noise from somewhere else? Do you have big current spikes going on somewhere nearby, or large voltage steps? If you can post a picture of an acquired waveform at a high sample rate, that might help us figure out where the noise is coming from.

2. The tolerance doesn't affect the fluctuations, just the accuracy.

3. Yes, a higher voltage (more current) would improve the signal-to-noise ratio for a given noise level. For example, if you used a 250-ohm reference resistor, your nominal voltage would increase from 6mV to 60mV, and the 8mV noise would correspond to a 0.4 ohm variation instead of 4 ohms. You have to be careful not to increase the current so much that the resistors heat up, though, as that could cause them to change value a little. For example, in my 250 ohm example, the 250 ohm resistor would have 20mA through it and 5V across it, causing it to dissipate 100mW. That would make it quite warm, and its value would fluctuate as random air currents change its temperature.

4. As long as you measure the voltage across each resistor close to the body of the resistor, wire resistance shouldn't cause a problem. The 6221 pulls very little current from its analog inputs.

5. The +5V source should be fine as long as it's quiet. But any noise on it will cause a change in the measurement. It might be worthwhile to try replacing the +5V with an analog output or some other independent voltage source for the resistance measurement, at least as an experiment.

Averaging is a perfectly acceptable thing to do, but it's best to try to minimize the noise before you resort to averaging.

Chris
0 Kudos
Message 6 of 9
(10,526 Views)
Thanks for your advice, i'll try them out.

I'm quite concerned about such the small R i'm supposed to measure. Even sometimes when i do not hold my probes perfectly still i can't get any proper reading using a multimeter.
0 Kudos
Message 7 of 9
(10,506 Views)
If you bring only two leads to your resistor under test, then you can have problems with lead resistance and contact resistance. But if you use 4 wires, with two bringing the current and two measuring the voltage, then you won't have any such issues.

Chris
0 Kudos
Message 8 of 9
(10,488 Views)

Hi,

 

Are the Developer Zone articles unavailable at this time?

 

Best,

Theresa 

0 Kudos
Message 9 of 9
(2,799 Views)