Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Current direction in electrical circuit with NI 9264

Solved!
Go to solution

Hi,

I would like to measure R1 and R2 in my circuit, using a NI 9264 and NI 9203 module.

For that, I already wrote a VI in LabView which subsequently outputs a voltage and measures the current:

- First, a voltage V0 is applied to AO0 such that a current flows through R1 to the NI 9203 module and

- Then, a voltage V1 is applied to AO1 such that a current flows through R2 to the NI 9203 module.

 

When running my script just for R1, I realized that I measure a different current when R2 is not connected to AO1 of the NI 6264 module and when it is connected.

The only explanation I have is that when R2 is connected to AO1, the current from AO0 can flow through both the NI 9203 but also to the AO1.

 

Am I right with my guess? If yes, is there a way to block AO1 such that current cannot flow through this output?

 

I attached a picture of my electrical circuit.

 

Thank you very much for your help!

 

 

 

circuit.png

 

0 Kudos
Message 1 of 6
(1,278 Views)

@Yabudabi wrote:

is there a way to block AO1 such that current cannot flow through this output?

 


I don't think that's possible. Perhaps you should build an external switch circuit or get a Relay Output Module like NI-9482 or NI-9485

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 2 of 6
(1,253 Views)
Solution
Accepted by topic author Yabudabi

Yes, you do have current flowing from AO0 to AO1 through the resistors.  As you have it connected, AO1 will always effect the measurement for R1.  To make it even worse for you, AI channels have a very high impedeance, practically an open.  So you have no current draw to possibly get the resistance measurement.  To measure a resistor you need a Voltage and a Curent measurement and then apply math (R = V/I).  So what you really need is a known resistor to measure the voltage drop to calculate the current (I = V/R) and then measure the drop across the test resistor, divide by the calculated current, and you have the resistor value.  This is how DMMs do it.  This is how you should be connecting things up in order to get your measurement.  I recommend a 1 Ohm current-sense resistor to make the math a lot easier on yourself.

 

NOTE: Duplicate this circuit with different channels for a second resistor measurement.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 6
(1,251 Views)

Thank you very much for your clear answer!

 

As I understand from your answer, it is not possible though to add a second resistor R2 to the same circuit and measure first R1 and then R2?

0 Kudos
Message 4 of 6
(1,210 Views)

@Yabudabi wrote:

As I understand from your answer, it is not possible though to add a second resistor R2 to the same circuit and measure first R1 and then R2?


Nope.  You cannot have other possible current paths than your sense circuit to get an accurate measurement.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 6
(1,196 Views)

To suggest a better test fixture and method, please describe your application and the instruments you have on-hand.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 6 of 6
(1,189 Views)