Tuesday, June 30, 2015

Using User Defined Statuses on the APS

Hi Everyone,

I wanted to talk about a feature in our Advanced Power Supply family (APS from here on out)  that not too many people know about.  The APS features two user defined statuses in the Operation Status group.  Here is a rundown of all the entries in the group:


You can see that bits 7 and 8 are User1 and User2.

Using the advanced triggering system for the APS you can define what conditions will trigger a change in these two statuses.  The N7906A Power Assistant Software (download link) has a very handy graphical way to set up the trigger.   As an example, let's say that I wanted to change the user defined status when the voltage exceeds 1 V and the unit goes into positive current limit status.  Using the Power Assistant Software I would whip up the following:


After I draw out my trigger expression, I can either download it to my APS or I can click the "SCPI to Clipboard" button on the top of the page.  If I hit that button now and then hit paste here, I get:

:SENSe:THReshold1:FUNCtion VOLTage
:SENSe:THReshold1:VOLTage 1
:SENSe:THReshold1:OPERation GT
:SYSTem:SIGNal:DEFine EXPRession1,"Thr1 AND CL+"
:STATus:OPERation:USER1:SOURce EXPRession1

I can just copy this code into my program.  It's a pretty convenient.

I think the big question is: What can you do with this?  The answer is: whatever you want.  It's user defined so you can use it in whatever way you see fit.  If you want to check if the current exceeds a certain threshold you don't want to do a bunch of measure commands in loop, you can define that as your trigger and then just check the Operation Status Group (using the STAT:OPER? or STAT:OPER:COND? queries). 

I think that the most powerful thing that you can do with this is set up a SRQ handler to act when the user statuses change.  This is actually a project that I am working on presently so I have not implemented this just yet (but I will in the near future).   When I do, I will definitely write a blog post about it though!  I wanted to get the word out about this because even I did not automatically think about this when faced with a issue that just screamed to use this.  

Thanks for reading and stay tuned for a future installment on this topic! 

  




Friday, June 19, 2015

How does your product react to a power line disturbance?

Power line disturbances can occur anywhere at any time. Your product can be exposed to disturbances such as voltage surges, sags, brownouts, cycle dropouts, or transients. If you are involved in the design, manufacture, or analysis of a power conversion product or circuit, you are interested in how your product reacts to power line disturbances because your product’s reaction will have a direct impact on how satisfied your customers are with the performance of your product. It is therefore critical for you to know how your product will react to power line disturbances. This knowledge comes only from direct measurement of the power line disturbance and the resultant behavior of your product.
Keysight’s IntegraVision power analyzer model PA2201A can allow you to gain quick insight into your product’s power consumption and dynamic behavior when it is exposed to power disturbances.
Next week, on Thursday, June 25, 2015, at 1:00 pm EDT, I will be presenting a live webinar on the topic “Successfully Make Power and AC Line Disturbance Measurements”. To get more information and to register to attend, please click this link: http://electronicdesign.com/webinar/successfully-make-power-and-ac-line-disturbance-measurements

If you are reading this BEFORE the webinar date, I hope you will attend the live presentation next week. If you are reading this AFTER the webinar date, the above link should bring you to a recording of the webinar.

Enjoy!

Tuesday, June 16, 2015

When is it best to use a battery or a power supply for testing my battery powered device?

As I do quite a bit of work with mobile battery powered devices I regularly post articles here on our “Watt’s Up?” blog about aspects on testing and optimizing battery life for these devices. As a matter of fact my posting from two weeks ago is about the webcast I will be doing this Thursday, June 18th: “Optimizing Battery Run and Charge Times of Today’s Mobile Wireless Devices”. That’s just two days away now!

With battery powered devices there are times it makes sense to use the device’s actual battery when performing testing and evaluation work to validate and gain insights on optimizing performance. In particular you will use the battery when performing a battery run-down test, to validate run-time. Providing you have a suitable test setup you can learn quite a few useful things beyond run-time that will give insights on how to better optimize your device’s performance and run-time. I go into a number of details about this in a previous posting of mine: “Zero-burden ammeter improves battery run-down and charge management testing of battery-powered devices”. If you are performing this kind of work you should find this posting useful.

However, there are other times when it makes sense to use a power supply in place of the device’s battery, to power up the device for the purpose of performing additional types of testing and evaluation work for optimizing the device’s performance. One major factor for this is the power supply can be directly set to specific levels which remain fixed for the desired duration. It eliminates the variability and difficulties of trying to do likewise with a battery, if at all possible. In most all instances it is important that the power supply provides the correct characteristics to properly emulate the battery. This includes:
  • Full two-quadrant operation for sourcing and sinking current and power
  • Programmable series resistance to simulate the battery’s ESR

These characteristics are depicted in the V-I graph in figure 1.


Figure 1: Battery emulator power supply output characteristics

Note that quadrant 1 operation is emulating when the battery is providing power to the device while quadrant 2 is emulating when the battery is being charge by the device.


A colleague here very recently had an article published that goes into a number of excellent reasons why and when it is advantageous to use a power supply in place of trying to use the actual battery, “Simulating a Battery with a Power Supply Reaps Benefits”. I believe you will find this to also be a useful reference.

Wednesday, June 3, 2015

Webcast this June 18th: Optimizing Battery Run and Charge Times of Today’s Mobile Wireless Devices

One thing for certain: Technological progress does not stand still for a moment and there is no place where this is any truer than for mobile wireless devices! Smart phones, tablets, and phablets have all but totally replaced yesterday’s mobile phones and other personal portable devices. They provide virtually unlimited information, connectivity, assistance, and all kinds of other capabilities anywhere and at any time.

However, as a consequence of all these greater capabilities and time spent being actively used is battery run time limitations. Battery run time is one of top dissatifiers of mobile device users. To help offset this manufacturers are incorporating considerably larger capacity batteries to get users through their day. I touched upon this several weeks ago with my earlier posting “Two New Keysight Source Measure Units (SMUs) for Battery Powered Device and Functional Test”. We developed higher power versions of our N678xA series SMUs in support of testing and development of these higher power mobile devices.

Ironically, a consequence of higher capacity batteries leads to worsening of another top user dissatifier, and that is battery charging time. Again, technological progress does not stand still! New specifications define higher power delivery over USB, which can be used to charge these mobile devices in less time. I also touched upon this just a few weeks ago with my posting “Updates to USB provide higher power and faster charging”. The power available over USB will no longer be the limiting factor on how long it takes to recharge a mobile device.

I have been doing a good amount of investigative work on these fronts which has lead me to put together a webcast “Optimizing Battery Run and Charge Times of Today’s Mobile Wireless Devices”. Here I will go into details about operation of these mobile devices during use and charging, and subsequent testing to validate and optimize their performance.  If you do development work on mobile devices, or even have a high level of curiosity, you may want to attend my webinar on June 18. Additional details about the webcast and registration are available at: “Click here for accessing webcast registration”. I hope you can make it!


Friday, May 29, 2015

How to calculate the accuracy of a power measurement

Electrical power in watts is never directly measured by any instrument; it is always calculated based on voltage and current measurements. The simplest example of this is with DC (unchanging) voltage and current: power in watts is simply the product of the DC voltage and DC current:
So the accuracy of the power measurement (which is calculated from the individual voltage and current measurements) is dependent on the accuracy of the individual V and I measurements.

For example, you might use a multimeter to make V and I measurements and calculate power. The accuracy of these individual measurements is typically specified as a percent of the reading plus a percent of the range which is an offset. (Note that “accuracy” here really means “inaccuracy” since we are calculating the error associated with the measurement.)

Let’s use an example of measuring 20 Vdc and 0.5 Adc from which we calculate the power to be 10 W. We want to know the error associated with this 10 W measurement. Looking up the specs for a typical multimeter (for example, the popular Keysight 34401A), we find the following 1-year specifications:

DC voltage accuracy (100 V range): 0.0045 % of reading + 0.0006 % of range
DC current accuracy (1 A range): 0.1 % of reading + 0.01% of range

The error (±) associated with the voltage measurement (20 V) is:
So when the measurement reading is 20.0000 V, the actual voltage could be any value between 19.9985 V and 20.0015 V since there is a 1.5 mV error associated with this reading.

The error (±) associated with the current measurement (0.5 A) is:
So when the measurement reading is 0.5 A, the actual current could be any value between 0.4994 A and 0.5006 A since there is a 0.6 mA error associated with this reading.

We can now do a worst-case calculation of the error associated with the calculated power measurement which is the product of the voltage and current. The lowest possible power value is the product of the lowest V and I values: 19.9985 V x 0.4994 A = 9.98725 W. The highest possible power value is product of the highest V and I values: 20.0015 V x 0.5006 A = 10.01275 W. So the error (±) associated with the 10 W power measurement is ± 12.75 mW.

The above is the brute-force method to determine the worst-case values. It can be shown that the percent of reading part of the power measurement error can be very closely approximated by the sum of the percent of reading errors for the V and I. Likewise, it can be shown that the offset part of the power measurement error can be very closely approximated by the sum of the voltage reading times the current offset error and the current reading times the voltage offset error:
Applying this equation to the example above for the 100 V and 1 A ranges at 20 V, 0.5 A:
So for 10 W, we get:
As you can see, this is the same result as produced by the brute-force approach. Isn’t it great when math works out the way you expect?!?!

In summary, the error associated with a power measurement calculated as the product of a voltage and current measurement has two parts just like the V and I errors: a % of reading part and an offset part. The % of reading part is closely approximated by adding the % of reading parts for the V and I measurements. The offset part is closely approximated by adding two products together: the voltage reading times the current offset error and the current reading times the voltage offset error. It’s as simple as that!

Should I use RS-232 or GPIB to communicate with my instrument?

Hi everyone,

I am writing this as I am preparing to go to the beach for a week.  My topic today will be short but hopefully useful.    We are going to talk about a subject that has been near and dear to my heart for the past 15 years, serial versus GPIB communication on our instruments.

Back in the days before LAN and USB became instrument standard interfaces, many of our products were designed with RS-232 serial ports in addition to GPIB.  RS-232 is standard on the 681xB AC Source/Analyzers, the E36xxA bench power supplies, the N330xA Electronic loads, as well as a few other products.

RS-232 is an interesting option for communication because it is free, most people have them standard on their computers, and you really only need to buy a reasonably priced cable.  The main drawbacks are the fact that you need to put it in remote mode yourself using the "SYST:REM" command, that reasonably priced cable has to be properly configured, and it is slower than GPIB.  The main drawbacks of GPIB is that it costs more and you need to purchase hardware.

I did some benchmarking this morning using my trusty 6811B AC Source/Analyzer.  I used the proper RS-232 cable and my Keysight 82357B USB to GPIB converter to connect to the 6811B.  I wrote a small program that measures the time to send a "*IDN?" command and receive a response.  The program looped 100 times and calculated the average time.  With GPIB, the average time to send and read back took about 7 ms.  With RS-232, the same send command and read back the response took about 50 ms.

So to answer my titular question, "Should I use RS-232 or GPIB to communicate with my instrument?", my answer in every instance would be to use GPIB.  I know that it is more expensive but you really get what you pay for in this instance.  GPIB is a much faster, more reliable way to communicate with your instruments.

Thanks for reading.  Let us know if you have any questions.

Friday, May 22, 2015

New performance options for the N6900A Advance Power System gives greater versatility for your test needs

Our N6900 and N7900 series Advanced Power System (APS) DC power supplies are some of our most sophisticated products, setting new levels of performance and capabilities on many fronts. They come in 1kW and 2kW power levels as shown in Figure 1 and can be grouped together to provide much greater power levels as needed.


Figure 1: N6900 and N7900 Advanced Power System 1kW and 2kW models

Most noteworthy is that these can be turned into full two-quadrant DC sources by connecting up the optional 1kW N7909A Power Dissipator (2 needed for 2kW units) providing 100% power sinking capability. This makes APS an excellent solution for battery, battery management and many alternative energy applications, where both sourcing and sinking power are needed.
  • The N6900 series DC power supplies are designed for ATE applications where high test throughput and high performance is critical.
  • The N7900 series dynamic DC power supplies are designed for ATE applications where high speed dynamic sourcing and measurement is needed, in additions to high performance.

A lot more about these products is covered in another post on our General Purpose Electronic Test Equipment (GEPTE) blog when they were first announced. This is a great resource for learning more about APS and can be accessed from the following link: “New Advanced Power System: Designed to Overcome Your Toughest Test Challenges”

If you are a regular visitor to the “Watt’s Up?” blog no doubt you have seen we have shared a lot about how to do things with the N6900 series and N7900 series APS to address a number of difficult test challenges. A lot of times it would have otherwise required additional equipment or custom hardware to accomplish these tasks. While many of these examples are suitable for the N6900 and N7900, a good number of times examples make use of the additional capabilities only available in the N7900 series.

In certain test situations the N6900 series APS would be a great solution and lower cost than the N7900 series, if only it also had a certain additional capability. To this end Keysight has recently announced four new performance options for the N6900 series APS to address a specific test need you may have, as follows:
  1. Accuracy Package (option 301): Adds a second seamless measurement range for current
  2. Measurement Enhancements (Option 302): Adds external data logging and voltage and current digitizers with programmable sample rates
  3. Source and Speed Enhancements (Option 303): Adds constant dwell arbitrary waveforms and output list capability, and faster up and down programming speed
  4. Disconnect and Polarity-Reversal Relays (Option 760 and 761): Provides galvanic isolation and allows output voltage to be switched between positive and negative values

 Additional details about the N6900 series APS and the four new performance options are available from the recent press release, available at the following link: “Keysight Technologies adds Versatile Performance Options to Industry’s Fastest Power Supplies”

With these new options you now have a spectrum of choices in the Advanced Power System product family to better address any test challenges you may be faced with!