Tuesday, April 30, 2013

How do I measure inrush current with an Agilent DC Power Supply?

Hello everybody! I want to build on my blog post from last month.  This month, we are going to discuss how to measure inrush current using the DC Power Analyzer’s scope function as well as the digitizer feature that is available on some of our system power supplies.

Measuring inrush current is a task that many customers that use DC Power Supplies want to accomplish.  When you are doing this test on the bench, the N6705B DC Power Analyzer (DCPA) is your best bet.  The DCPA has the scope feature which makes this a breeze.  One of the great things about Agilent power supplies is that they can measure current directly, without the need for a current probe. Some of our supplies have very high current measurement accuracy as well so you can get an accurate representation of your current.

In the below screenshot, I just had a capacitor connected to the output of the supply.  I set a voltage arbitrary waveform that went from 0 V to 20 V with the voltage slew set for the maximum.  I set the scope to trigger on the Arb run/stop key so that when I hit the key, both the arbitrary waveform and the scope triggered.  After I acquired the waveform, I used the markers to get the maximum current.  That number is our inrush current.   


As I said earlier, DCPA is geared towards bench use.   The graphical scope makes this task pretty easy.  Many of our system supplies (as well as the DCPA) have a digitizer feature that you can access using the SCPI programming interface.  The digitizer will sample the output using settings that you provide it.  These settings are: the number of points, the time interval between points, and the number of pretrigger points that you acquire.  In the N678xA SMU modules, the time interval is as low as 5.12 us and the number of points is as high as 512kpoints.  Here is a list of commands to set up the digitizer (written for the N67xx supplies) as well as some comments.

Set the digitizer to measure current:
 SENS:FUNC:CURR ON,(@1)

Set the number of pretrigger points, a negative value represents points taken before the trigger:
SENS:SWE:OFFS:POIN -100,(@1)

Set the total number of points to acquire:
SENS:SWE:POIN 5000,(@1)

Set the time interval between points:
SENS:SWE:TINT 0.000020,(@1)

Set the measurement trigger source to bus:
TRIG:ACQ:SOUR BUS,(@1)

 Initiate the measurement trigger system
INIT:ACQ (@1)

Send a trigger:
*TRG

Using this code, once the trigger is sent, the measurement system will acquire 5000 points at a time interval of 20 us while taking 100 pretrigger points. 

After the measurement occurs, you read the current back using:
FETC:ARR:CURR? (@1)

Once you have the array of current measurements, you can do any normal calculation that you can do on any array.  To measure inrush, you want to find the maximum current in the array.  This peak will be your inrush current.  I wrote a program that followed the exact same steps that I used on the scope above (setting up a step that went from 0 to 20 V and synchronizing triggers) and measured a maximum of 1.07748 A.  As you can see, I got a similar result from the two different approaches.

That is all that I have this month.  I hope that it is useful information.  If you have any questions at all please feel free to ask them in our comments.

Friday, April 26, 2013

How to read your DC power supply’s data sheet

When you have to select a programmable DC power supply to power your device under test (DUT), you will have many power supply vendors to choose from. To narrow your selection, you will likely read the data sheets associated with the power supplies you are interested in. While some of the basic information about the power supplies presented on the data sheets will be similar, you will also find different specification descriptions from different power supply vendors. To ensure you are considering the right specs, it is best to start with a good understanding of your DUT’s power requirements. Start with your DUT’s required maximum input voltage, current, and power. Think about whether or not you need to supply dynamic input voltages to your DUT and about how accurate the DUT input voltage needs to be.  Then consider what power-related measurements you will need to make.



Once you know your DUT’s power requirements, you can begin to peruse the specs in various power supply data sheets to find one that meets your needs. Most likely, you will be considering specs such as:
  • DC output ratings
    • These show the maximum voltage, current, and power available from the power supply. Make sure your DC input requirements are within these values. 
  • Output noise
    • This specification describes the deviations in the DC output voltage, typically expressed as peak-to-peak volts and rms volts. If your DUT is sensitive to noise, be sure to choose a low noise power supply.
  • Load regulation (also called load effect)
    • This spec shows how much the steady-state output voltage can change when the load current changes. If you want the input voltage to your DUT to vary very little when your DUT current changes, choose a power supply with low load regulation.
  • Load transient recovery time
    • This is the time for the output voltage to recover to within a settling band around the steady-state value when the load current changes. If your DUT is sensitive to large short-term input voltage changes, choose a power supply with a short load transient recovery time.
  • Line regulation (also called line effect, source regulation, or source effect)
    • This spec shows how much the steady-state output voltage can change when the power supply’s AC input line voltage changes. If you want the input voltage to your DUT to vary very little when your AC line voltage changes, choose a power supply with low line regulation.
  • Programming accuracy
    • This spec shows how much the steady-state output voltage can vary from its programmed (set) value. If you want the input voltage to your DUT to be very precisely controlled, choose a power supply with a low programming accuracy. (Most “programming accuracy” specs are really describing the maximum possible “programming error”, so you want this number to be low.)
  • Measurement accuracy
    • This spec shows how much the steady-state measurements (voltage or current) can vary from the actual output value. If you are counting on measuring your DUT’s input voltage or current with high accuracy, choose a power supply with low measurement accuracy. (Most “measurement accuracy” specs are really describing the maximum possible “measurement error”, so you want this number to be low.)
One of my colleagues, Kevin Cavell, wrote an article entitled “How to Read Your DC Power Supply’s Data Sheet” that appeared in the March, 2013 issue of Design World addressing in more detail many of these considerations. Here is a link to the on-line version:
http://www.designworld-digital.com/designworld/201303#pg71

The same article can be accessed here:
http://www.powersupplytips.com/how-to-read-your-dc-power-supplys-data-sheet

Finally, here is a link to Kevin’s application note – the article was based on this app note:
http://cp.literature.agilent.com/litweb/pdf/5991-2293EN.pdf

Kevin’s app note uses examples from the data sheets for a Sorenson power supply and an Agilent power supply. You will notice that the magazine articles refer to these as Power Supply A and Power Supply B.




Tuesday, April 23, 2013

Ferroresonant Transformers as Pre-regulators in DC Power Supplies


One significant drawback of a linear DC power supply is its efficiency for most applications. You can generally design a linear DC power supply with reasonable efficiency when both the output and input voltage values are fixed. However, when either or both of these vary over a wide range, after assuring the DC power supply will properly regulate at low input voltage and/or high output voltage, it then has to dissipate considerable power the other extremes.

For DC power supplies running off an AC line, having to accommodate a fairly wide range of AC input voltage is a given. A 35% increase in line voltage from the minimum to the maximum value is not uncommon. Today’s high frequency switching based power supplies have resolved the issue of efficiency as a function of input line voltage variance. However, prior to widespread adaptation of high frequency switching DC power supplies, variety of different types of low-frequency pre-regulators were developed for linear DC power supplies

What is a pre-regulator? A pre-regulator is a circuit that provides a regulated voltage to the linear output stage from an unregulated voltage derived from the AC line voltage, with little loss of power. Although not nearly as commonly used as other pre-regulator schemes, on rare occasion ferroresonant transformers were used as an effective and efficient pre-regulator in DC power supplies.

What is a ferroresonant transformer? It is similar to a regular transformer in that it transforms AC voltage through primary and secondary windings. Unlike a regular transformer however, once it reaches a certain AC input voltage level it starts regulating its AC output voltage at a fixed level even as the AC input voltage continues to rise, as depicted in Figure 1. Ferroresonant transformers are also commonly called constant voltage transformers, or CVTs.


Figure 1: Ferroresonant transformer input-output transfer characteristic

The ferroresonant transformer employs a rather unique magnetic structure that places a magnetic shunt leakage path between the primary and secondary windings. This structure is illustrated in Figure 2. This way only part of the transformer structure saturates at a higher fixed peak voltage level during each AC half cycle. When part of the core magnetically saturates, the primary and secondary windings are effectively decoupled. The AC capacitor on the secondary side resonates with existing inductance. This provides the carry-over energy to the load during this magnetically saturated phase, holding up the voltage level. The resulting waveform is a clipped sine wave with a fairly high level of harmonic distortion as a result. Some more modern designs include additional filtering that can bring the harmonic distortion down to just a few percent however.


Figure 2: Ferroresonant transformer structure

A ferroresonant transformer has some very appealing characteristics in addition to output voltage regulation:
  • Provides isolation from line spikes and noise that is normally coupled through on conventional transformers
  • Provides protection from AC line voltage surges
  • Provides carry over during momentary AC line drop outs that are of a fraction of a line cycle
  • Limits its output current if short-circuited
  • Extremely robust and reliable


Because of a number of other tradeoffs it is unlikely that you will find them in a DC power supply today. High frequency switching designs pretty much totally dominate in performance and cost. Ferroresonant transformer design tradeoffs include:
  • Large physical size
  • Relatively expensive and specialized
  • Limited to a specific line frequency as it resonates at that frequency


So, even though you are very unlikely to encounter a ferroresonant transformer in a DC power supply today, it’s interesting to see there still appears to be a healthy demand for ferroresonant transformers as AC line conditioners in a wide range of sizes, up to AC line power utility sizes.  Their inherent simplicity and robustness is hard to beat when long term, maintenance-free, reliable service is paramount, and AC line regulation in many regions around the world cannot be counted on to be well controlled.

Monday, April 8, 2013

Why would a DC power supply have RMS current readback?


During a conversation with a colleague at work one day the topic of having RMS current readback on DC power supplies came up. It is a measurement capability we have on a number of our system DC power supplies. He posed the question: Why the reason for having such a capability? I actually had not been involved with the original investigations identifying what reasons this was added so I instead had to rely on my intuition. That’s not always a good thing but it did help me out this time at least!

He had argued that since you are feeding a fixed DC voltage into the device you are powering, the power consumption is going to be a product of the DC (average) voltage and DC (average) current, regardless of whether the current is purely DC, or if it is dynamic, having a substantial amount of AC content. This is true, as I have illustrated in figure 1, comparing purely DC and pulsed currents being drawn by a load. For purely DC current the DC and RMS values are the same. In comparison, for a pulsed current the RMS value is greater the DC value. Regardless, the RMS current value does not factor into the overall power consumption of the DUT here. The power consumption is still the product of the DC voltage and current.


Figure 1: Comparing power consumption of a DC powered DUT drawing constant and pulsed currents

So why provide an RMS current measurement? Well there can be times when this can prove useful, even when the DUT is powered by a fixed DC voltage. Consider the scenario depicted in Figure 2.


Figure 2: Properly sizing a protection fuse on a DC powered device

Many products incorporate fuses to protect from over-current and subsequent damage, usually brought on due to misuse or component failure. Fuses are rated by their RMS current handling, not the DC current. In the case of the pulsed loading the RMS current is twice the DC current and the resulting power in the fuse is four times that for a constant current.  If the fuse was selected based on the DC current value it would most certainly fail well below the required operating level!

My colleague conceded that this fuse example was a legitimate case where RMS current measurement would indeed be useful. Maybe it was not a frivolous capability after all. No doubt sizing fuses is just one of many reasons why RMS measurement on DC products can be useful!

Sunday, March 31, 2013

Remote sensing can affect load regulation performance


Back in September of 2011, I posted about what load effect was (also known as load regulation) and how it affected testing (see http://powersupplyblog.tm.agilent.com/2011/09/what-is-load-effect-and-how-does-it.html). The voltage load effect specification tells you the maximum amount you can expect the output voltage to change when you change the load current. In addition to the voltage load effect specification, some power supplies have an additional statement in the remote sensing capabilities section about changes to the voltage load effect spec when using remote sensing. These changes are sometimes referred to as load regulation degradation.

For example, the Agilent 6642A power supply (20 V, 10 A, 200 W) has a voltage load regulation specification of 2 mV. This means that for any load current change between 0 A and 10 A, the output voltage will change by no more than 2 mV. The 6642A also has a remote sensing capability spec (really, a “supplemental characteristic”). It says that each load lead is allowed to drop up to half the rated output voltage. The rated output voltage for the 6642A is 20 V, so half is 10 V meaning when remote sensing, you can drop up to 10 V on each load lead. Also included in the 6642A remote sensing capability spec is a statement about load regulation. It says that for each 1 volt change in the + output lead, you must add 3 mV to the load regulation spec. For example, if you were remote sensing and you had 0.1 ohms of resistance in your + output load lead (this could be due to the total resistance of the wire, connectors, and any relays you may have in series with the + output terminal) and you were running 10 A through the 0.1 ohms, you would have a voltage drop of 10 A x 0.1 ohms = 1 V on the + output lead. This would add 3 mV to the load regulation spec of 2 mV for a total of 5 mV.

There are other ways in which this effect can be shown in specifications. For example, when remote sensing, the Agilent 667xA Series of power supplies expresses the load regulation degradation as a formula that includes the voltage drop in the load leads, the resistance in the sense leads, and the voltage rating of the power supply. Output voltage regulation is affected by these parameters because the sense leads are part of the power supply’s feedback circuit, and these formulas describe that effect:



One more example of a way in which this effect can be shown in specifications is illustrated by the Agilent N6752A. Its load effect specification is 2 mV and goes on to say “Applies for any output load change, with a maximum load-lead drop of 1 V/lead”. So the effect of load-lead drop is already included in the load effect spec. Then, the remote sense capability section simply says that the outputs can maintain specifications with up to a 1 V drop per load lead.

When you are choosing a power supply, if you want the output voltage to be very well regulated at your load, be sure to consider all of the specifications that will affect the voltage. Be aware that as your load current  changes, the voltage can change as described by the load effect spec. Additionally, if you use remote sensing, the load effect could be more pronounced as described in the remote sensing capability section (or elsewhere). Be sure to choose a power supply that is fully specified so you are not surprised by these effects when they occur.

Watt's Up with Datalogging and Digitizing?


All of our power supplies offer the ability to take an average measurement using either the front panel or the MEAS SCPI commands.  Some of our newer power supplies have some more advanced measurement capabilities.   The two capabilities that we are going to look at today are digitized measurements and datalogging.   Let’s take a short look at each one and then talk about when to use each one.

The digitizer has been in our products for a while now.  With the digitizer, you define three parameters and the measurement uses these parameters to return an array of measurements back to you.  The three parameters are: the number of points, the time interval, and the points offset.  The number of points is pretty simple.  It is the number of measurements that you want to take as well as the size of the array that you are going to read back.  The time interval is the pace of the measurements.  This is also the time between the points in the array.  The points offset is a way that you vary the starting point of the array.  This offset can be negative to return measured points before the trigger or positive to delay the start of the measurement.  The most points that we can measure and the fastest time interval is with our N678xA SMU modules.  These modules have a time interval of 5.12 us and a total number of points of 512 Kpoints (keep in mind that 1 Kpoint is 1,024 points).  This yields a total time of 5.12 us x 512 x 1,024 which yields a result of 2.68 seconds.  So the longest measurement that you can make is 2.68 seconds.  The largest time interval that we can measure is 40,000 seconds.  Setting this with the highest number of points would yield 40,000 s x 512 x 1,024 yields a total acquisition of 20,971,520,000 seconds.  That is 666.83 years! 

The other advanced measurement capability that we are going to talk about is our datalogger.  With the datalogger, you set a total acquisition time and an integration time.  The integration time is the amount of time that the power supply will average measurements.  The measurement system is still running at its maximum digitizing rate but it is averaging those measurements and returning that averaged measurement.  The digitizer on the N6705B DC Power Analyzer also will return the maximum measured value and the minimum measured value of each integration period.  The quickest integration time on the N6705B is 20.48 us.  The only limitation in the amount of data that you can log with the internal datalogger is the file size (the maximum file size is somewhere near 2 gB).  If you want to datalog huge files, you can use the external datalog feature (I wrote another blog post about this) or use our 14585A software where the only limitation is the free space on your hard drive.  The catch on the external datalogger is that that the quickest integration time is 102 us.

So when do you use one over the other?  It is pretty simple.  When you want to make a long term measurement (days, weeks, etc.) at a fast rate you should use the datalogger.  You would use this when you are looking to measure something like long term battery drain.  If you are looking for a more short term, faster measurement you would use the digitizer.  You would use the digitizer to measure something like inrush current. 

These are a few of the great features available in our power supplies.  Please let us know if you have any questions on these features or any of the features of our power supplies.          

Wednesday, March 20, 2013

Open sense lead detection, additional protection for remote voltage sensing


A higher level of voltage accuracy is usually always needed for powering electronic devices under test (DUTs). Many devices provide guaranteed specifications for operating at minimum, nominal, and maximum voltages, so the voltage needs to accurate as to not require unacceptable amounts of guard banding of the voltage settings.

One very significant factor that affects the accuracy of the voltage at the DUT is the voltage drop in the wiring between the output terminals of the power supply and the actual DUT fixture, due to wiring’s inherent resistance, as shown in Figure 1.



 A standard feature of most all system DC power supplies is remote voltage sensing. Instead of the voltage being regulated at the output terminals of the DC power supply’s output terminal, it is instead sensed and regulated at the DUT itself, compensating for the voltage drop in the wiring. Additional details of this are documented in an earlier posting: “Use remote sense to regulate voltage at your load”

While remote voltage sensing addresses the problem of voltage drop in wiring affecting the voltage accuracy at the DUT, it then raises the concern of what happens if one of the sense lines becomes disconnected. Will the DC power supply voltage climb up to it maximum potential causing my DUT to be damaged?  Although this is a very legitimate concern, often the voltage is usually kept within a reasonable range of the setting by a feature referred to as “open sense lead protection”. A deeper dive on the issue of open sense lines and open sense lead protection are discussed at our posting: “What happens if remote sense leads open?”

Even with open sense lead protection and the voltage being kept within a reasonable range of the setting, this can be a concern for some customers who are relying on a high level of DC voltage accuracy at the DUT for test and calibration purposes. One categorical example of this is battery powered devices, where ADC circuits that need to precisely monitor the battery input voltage have to be accurately calibrated. If the voltage from the DC power supply has significant error, the DUT will be miss-calibrated.

One issue with open sense lead protection is it is a passive protection mechanism. It is simply a back up that takes over when a sense line is open. There is no way of knowing the sense lead is open. No error flag is set or fault condition tripped. The voltage being read back is the same as that is being regulated by the voltage sensing error amplifier, which is the same as the set voltage, so all looks fine from a read-back perspective. This is where open sense lead detection takes over. Open sense lead detection is a system that actively checks to see if the sense lines are doing their job. If not it lets the test system know there is a fault.

Open sense detection is not a common feature for most system DC power supplies. As one example we do employ it in our 663xx series Mobile Communications DC Sources as these are used for powering, testing and calibrating battery powered wireless devices. In the case of an open sense line condition it generates a fault condition and it keeps the output of the DC source powered down. It also provides status information on which of the sense lines are open as well.