Digital Multimeters (DMMs) and Precision DC Sources

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchoronizing Multilple PXI 4071

Hello Everybody,

 

 

I was using one NI PXI 4071 for measuring the current, but I want to use two PXI 4071 now to measure current through two channels.

I have attached the code with this post that I use with one card, so can anyone please look at my code and guide me what do I need to change to read current through two PXI 4071.

 

I will really appreciate your guidelines.

 

 

Best Regards,
Shaheen.

0 Kudos
Message 1 of 10
(6,667 Views)

I'm assuming you want the samples to occur at the same time.  That means you need to use the trigger feature.  You need to have both DMMs look at the same PXI trigger signal and start acquisition on that trigger.  There is a trigger pallet inside of the NI-DMM pallet.  What else do you have in your system?  Maybe you can get the trigger out of the DAQ card.


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 2 of 10
(6,655 Views)

 

I will look in this trigger pallet and see if it helps.

I attached a PDF file it shows the setup of card that I have in my system. Chassis is not shown in this file but both 4071 are in chassis. 

 

Thanks for help.

 

 

Best Regards,
Shaheen.

 

 

 

0 Kudos
Message 3 of 10
(6,636 Views)

Hi Shaheen,

 

If you go to LabVIEW >> Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Synchronization >> Multi-Device there are examples to help you synchronize two analog inputs on different devices.

 

 

Sunaina K.
Product Marketing Manager for CompactRIO & TSN

Making the intangible, tangible
0 Kudos
Message 4 of 10
(6,612 Views)

The easiest method is to just copy and paste the NI-DMM portion of the code, which results in software-timed accuracy (~a few milliseconds at best).  With only two DMMs, the code is still manageable; if you have more than two DMMs, I'd recommend creating an array of sessions, and then index through a for loop, opening each session with the same code.  Then, once the DMMs are configured and started, you can either read a measurement from each DMM as simultaneously as possible in SW by placing a bunch of reads in parallel and indexing all the session handles from the array, or you can just have another for loop inside your existing for loop that sequentially iterates through each session with the same read command, which will result in each of your measurements being a few ms off (since the calls are made serially).  Let us know what kind of synchronization you're looking for and we can comment further.

 

If you want better syncronization between the two DMMs, then I recommend routing an external trigger to both DMMs (you won't need any external cabling if you can use the PXI Trigger bus). The DAQ board you're using can likely route that trigger.  If you need trigger syncronization, let us know and I can whip up some code.  Note that even with a hardware trigger, the 407x DMMs are not truly synchronized, but the jitter will be much less and the measurement timing between the two instruments will be much closer together. 

 

Too much information?  In short, let us know how synchronized you need your measurements (in milliseconds, etc) and we can delve further.

 

Have a great day!

-John Sullivan
Problem Solver
0 Kudos
Message 5 of 10
(6,594 Views)

Thank you so much everyone.

 

I solved this issue by using two DMMs. I used the same code and just added another DDM for the new "physicall channel".

It is working very well.

 

My next goal is to have 8 channels doing same work for me but problem is I (my group) can not afford 8 NI PXI 4071, so I plan to use

multiplexing. While, problem with multiplexing is "switching time". Right now I am taking samples at every 5 micro seconds from each NI PXI 4071 which was not possible with multiplexing.

 

Can anybody help me how to achieve this goal. I will really appreciate your help.

 

 

Best Regards,
Shaheen.

0 Kudos
Message 6 of 10
(6,591 Views)

I would suggest using a DAQ card and reading the voltage drops from precision shunt resistors. I have found that 0.1 Ohm resistors work well.


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 7 of 10
(6,586 Views)

Can you please explain little more? I am using DAQ but don't know how I need to setup for shunt resistor.

I will really appreciate your reply.

 

 

Best Regards,
Shaheen.

 

 

0 Kudos
Message 8 of 10
(6,584 Views)

I miss my Visio.  I'm not an artist, as you can tell from this drawing.


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 9 of 10
(6,579 Views)

Note that depending on the current you're trying to measure, you might need to use a different sense resistance value.  For example, if you're trying to measure 1mA, that is only a 100uV drop across the sense resistor; thermal emf and DAQ card accuracy will affect the accuracy of your measurement.  In this case, I'd recommend a 100 Ohm resistor, which will yield 100mV with 1mA.  Note that the additional series resistance will affect the actual current through your DUT as the series resistance approaches the DUT resistance; you want the sense resistance to be much less than system resistance.

 

If you're not sure which resistance value to use, post your maximum current and the current resolution you're looking for and we can comment.

-John Sullivan
Problem Solver
0 Kudos
Message 10 of 10
(6,573 Views)