element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Test & Tools
  • Technologies
  • More
Test & Tools
Blog Programmable Electronic Load - Automating a DC Switcher Efficiency Test with LabVIEW
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Test & Tools to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 26 Mar 2018 1:52 PM Date Created
  • Views 2651 views
  • Likes 7 likes
  • Comments 5 comments
  • msp432
  • labview
  • scpi
  • electronic load
Related
Recommended

Programmable Electronic Load - Automating a DC Switcher Efficiency Test with LabVIEW

Jan Cumps
Jan Cumps
26 Mar 2018

A real world example that uses the electronic load to automatically measure the efficiency of a switch mode power device:

The LabVIEW controls a power supply and the DC load. It will test the efficiency for more than 800 combinations of input voltage and output current.

image

The results are logged to a spreadsheet and can be used to graph the behaviour of the device under test.

 

The Setup

 

The device under test is a DC to DC switcher that I got from element14 for a Road Test: TI SWIFTTm Power Module EVM.

It expects an input between 8 and 14 V. A Rigol DP832A is used to deliver input supply in that range.  (Another channel of the PSU also delivers the 12 V for the programmable load and its fan).

The output can deliver up to 10 A. The Programmable Electronic Load is used to draw the current.

LabVIEW runs the test cycle. It'll cycle both input and output through their range.

 

The LabVIEW Process

 

LabVIEW controls the PSU on the input and the DC load at the output. It also reads the measurements that both devices support.

There are two loops, an inner and an outer.

The outer loop cycles the PSU fro 8 to 14 V, in steps of 500 mV.

For each of these cycles, it asks the load to pull a current between 0 and 7.5 A from the device under test - in increments of 100 mA.

At each step, LabVIEW logs the source voltage and current, and the output voltage and current. Those are used to calculate the efficiency of the device under test.

This type of tests are often used by people that have to specify the behaviour of devices and circuits.

image

The front panel of the LabVIEW process allows you to select the correct devices and define the granularity of the test.

The upper part is used to set the parameters of the load, the lower half defines the behaviour of the power supply.

The flow runs forever. Once a whole cycle o outer loops is done, it resets the input to th starting voltage and starts all over.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

A click on the stop button ends the measurements. The spreadsheet is closed and you can analyse the results.

 

image

 

Initialise the Instruments

 

The power supply and DC load are initialised so that they are ready to run the test cycles. In all the flows below, the upper part controls the DC load, the lower part the PSU.

 

image

The load is set to constant current and the input is enabled.

The PSU's channel 0 is the one we're controlling. The settings from the front panel are programmed into the Rigol.

 

The Loops

 

The outer loop controls the PSU. It will loop from the lowest setting (8 V in our example) for a given number of steps (12), with a given increment (0.5 V).

 

 

image

Then, inside that loop, the inner loop will drive the output from 0V, in a given number of steps (78) with a given increment (0.1 A).

A push of the stop button breaks out of both loops.

 

Logging Data

 

Data is logged at the lowest level, at the end of the inner loop.

All data is combined into a "Merge Signals" block and sent to a "Write to Measurements" file.

We're using "Set Dynamic Attributes" blocks to name the columns in the spreadsheet.

 

image

This is a sample of the output file. The whole file is attached to the blog.

image

 

Closing Resources

 

When the tester pushes the stop button, or when an error occurs, the flow exits the loops and goes to the closure part.

 

image

In that section, all VISA devices (load and PSU) are properly closed down and released.

The load is deactivated and will not try to pull current out of the device under test. The PSU channel is switched off.

Your setup is ready for a new test - or you can plug in the next device under test and have it analysed.

 

The Result

 

I've attached a spreadsheet with a full run to this blog post. Here's a graph made from the gathered data:

 

image

While the DC load still needs development to deliver reliable and precise results, you can se that the API allows it ti be used in an automated test cycle.

The measurements here are done in a few minutes (I leave 2 seconds between setting a data point and collecting the info in the inner loop, and 2 seconds at the start of each outer loop to give the PSU time to settle).

If you do this by hand it would take loads more of your time, and you'd have to collect the measurements at each step.

 

 

LABView blocks
LabVIEW Library part 1: Initialise Block
LabVIEW Library part 2: Read Output Block
LabVIEW Library part 3: Close Block
LabVIEW Library part 4: Function Set Block
LabVIEW Library part 5: Input Control Block
Real World Examples
Programmable Electronic Load - Automating a DC Switcher Efficiency Test with LabVIEW
Some related LabVIEW posts that finetune this process
LabVIEW: passing multiple signals as a Dynamic Signal to a submodule (also: log measurements to Excel)
LabVIEW: Module to Generate Step Increments
Attachments:
measureefficiency.xlsx measureefficiency.xlsx
measureefficiency.zip
  • Sign in to reply

Top Comments

  • genebren
    genebren over 7 years ago +4
    Jan, Great update on your electronic load project. The automated efficiency test is a definitely a great feature and a real highlight of your load. Keep up the great work! Gene
  • fmilburn
    fmilburn over 7 years ago +3
    Really nice! A professional grade feature.
  • Jan Cumps
    Jan Cumps over 7 years ago +2
    I simplified the main flow by putting the big Excel log part into a separate module ( LabVIEW: passing multiple signals as a Dynamic Signal to a submodule (also: log measurements to Excel) ) and by putting…
Parents
  • genebren
    genebren over 7 years ago

    Jan,

    Great update on your electronic load project.  The automated efficiency test is a definitely a great feature and a real highlight of your load.  Keep up the great work!

    Gene

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • genebren
    genebren over 7 years ago

    Jan,

    Great update on your electronic load project.  The automated efficiency test is a definitely a great feature and a real highlight of your load.  Keep up the great work!

    Gene

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube