Automate immunity tests with Excel
Download an Excel application that controls test equipment, stores test data, and plots test results.
Ken Hall, Hewlett-Packard, Roseville, CA -- Test & Measurement World, 11/1/2002
|
To prove that an electronic product is immune to radiated emissions from sources such as cell phones, amateur radios, and broadcast transmitters, you must perform regulatory compliance tests in accordance with IEC 61000-4-3 (Ref. 1). Because this standard requires you to make multiple measurements, you'll simplify the procedure if you automate your test equipment.
At Hewlett-Packard's Roseville test facility, we've developed an application that uses an Excel spreadsheet and Visual Basic for Applications (VBA) to automate our tests. You can download the application for your own use. We developed the application to control the equipment in our lab, so you'll have to modify the VBA code to control your test equipment. See download instructions , below.
"Immunity tests" describes the setup specified in IEC 61000-4-3. Before you can perform a radiated-immunity test in a semianechoic or full-anechoic chamber, you must calibrate the test site to ensure that the field strength inside the chamber meets IEC 61000-4-3's 1-V/m, 3-V/m, or 10-V/m requirements. The standard also specifies that the E-M field meet uniformity requirements within a vertical plane that's at least 1 m and preferably 3 m from the antenna—the distances from the antenna to the EUT. You measure the field's uniformity within a vertical grid of 16 measurement points, 0.5 m apart, which totals 1.5 m2 in size.
You need to measure the field strength at all 16 points in the grid for both horizontal and vertical antenna positions at each of the 260 test frequencies. That's over 8300 measurements. You must calculate the mean of the field-strength measurements from the 16 measurements at each frequency. You can get valid results if at least 12 measurements fall within a 6-dB range, so you are permitted to discard up to four measurements that fall farthest from the mean for each frequency. The Excel download has a sheet (Figure 1) that will control your test equipment and store the calibration measurements by adjusting a signal generator's output and measuring the field strength. Other sheets will perform calculations, verify the test results, and run the immunity tests.
Note that the field-strength measurements use volts/meter units, but the acceptable range for the measurements is specified in decibels. Therefore, you must convert your measurements. The spreadsheet will do that for you, too.
![]() |
|
Figure 1 Clicking on the "Create Reference" button lets you set field-strength reference points for calibrating the test equipment prior to an immunity test. (click here to view enlarged image ) |
When you click on the "Create Reference" button, you'll activate a VBA routine that sets the signal generator's frequency to 80 MHz and measures the field strength at one grid location (reference point). The routine then adjusts the signal generator's amplitude to -20 dBm, which corresponds to 22,360 ìV/m on the field-strength meter. The system increases the signal generator's amplitude until the field-strength meter reads 6 V/m. I chose 6 V/m in case other points in the grid have lower field strengths. That level ensures you that no field's strength gets too small to measure. Later, the application will adjust field strength to meet requirements for IEC 61000-4-3.
With the reference location and field strength recorded, you can now take data on all 16 points, rerunning the measurements on the reference point to check repeatability. Clicking on the "Do 16 Point Cal" button prompts you to move the field probe to each point in the grid until you've made measurements at all 16 locations, after which the data portion of the sheet resembles the one in Figure 2.
![]() |
|
Figure 2 After collecting the data from 16 measurement points, the spreadsheet application calculates the mean and determines which measurements to discard. ( click here to view enlarged image ) |
Field strength in dBm = 20 * log (field strength in volts per meter * 106) – 107
IEC 61000-4-3 allows you to remove up to four of the 16 field-strength measurements before you calculate field uniformity. The application removes the measurements that fall more than 3 dB from the 16-point mean by marking them with an asterisk. To aid in the calculations, the application checks to see if the maximum value lies farther from the mean than the minimum value. If so, it sets the cell in column AC to "True." If not, it sets the cell to "False." The state of cells in this column tells the application where to start eliminating values from the calculations. The application then calculates the mean in dBm for the remaining points in the grid and places the values for each frequency in column X and then finds those that fall within ±3 dB of each mean value.
The value in column X may differ from that in column Y if fewer then 16 points fall within the 6-dB range. In rows 15 through 35, however, they're equal. In the other rows, the values of columns X and Y usually differ because fewer than 16 points fall within the ±3 dB range, so you get a slightly different mean value. If the field uniformity fails to meet IEC 61000-4-3 requirements, then your test will be invalid. When that occurs, you can try moving the antenna slightly or you can add absorbers to your chamber.
Once you verify that at all frequencies, and the field strengths for at least 12 points fall within ±3 dB of the mean (column X), you need to adjust the signal generator's output level until thelowest of the 12 field strengths equals the value of the desired test level (1 V/m, 3 V/m, or 10 V/m). A sheet called "3 V_M Verification" contains VBA code that calculates the amplitude of the signal generator for 3 V/m at each frequency. The application also contains pages for the other field-strength levels.
After you find the proper signal level for each frequency, you can use another sheet (not shown) to verify that nothing has changed before you remove the field probe and place the EUT into the chamber. This additional sheet (Vertical Test verification) lets you measure the field strength and compare it against the calibration measurements. If the verification indicates that fewer than 12 points fall within the required 6-dB field-strength range, you must recalibrate the test site. Fortunately, if you mark the floor locations of the antenna and reference probe position and always use those locations, you shouldn't have to perform the calibration measurements more than once a year, regardless of how many products you test.
If the verification sheet indicates that the field strength is within tolerance, then you're ready to run the immunity test. You can use two more Excel sheets to run the tests. The sheets, one each for horizontal and vertical antenna polarizations, set the field-strength levels at each test frequency. Run the EUT in a mode that you think makes it most susceptible to radiated emissions. Observe the EUT's performance. If it operates properly at all frequencies, then it passes the test. If not, you must find where the test signal is penetrating the EUT or its cables and make design changes.
| References |
|
| Author Information |
| Ken Hall is a senior EMC engineer at Hewlett-Packard's Hardware Test Center in Roseville, CA. He is the HP representative to the American National Standards Institute Accredited Standards Committee C63, and he is a member of CISPR/A and CISPR/H US National Committee Technical Advisory Groups. He has written numerous papers on EMC and holds two patents. |
|
|




















