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
  • 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 Keithley DMM6500: TSP Script Example - Measure Power
  • 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: 8 Jan 2019 9:19 PM Date Created
  • Views 5576 views
  • Likes 9 likes
  • Comments 5 comments
  • RoadTest
  • rt
  • keithley dmm6500
Related
Recommended

Keithley DMM6500: TSP Script Example - Measure Power

Jan Cumps
Jan Cumps
8 Jan 2019

I'm road testing the  Keithley Bench Digital Multimeter DMM6500.

In this post, I test the script to measure DC power. The setup uses the input to measure output voltage of a Buck converter, and measures current via the sense input and a shunt.

image

 

Measure DC Power with the DMM6500

 

The DMM6500 has no power measure option by default. But the instrument can measure 2 voltages at the same time, when in Voltage Rate mode.

In that mode, it will measure the voltage over the inputs and the voltage over the sense inputs.

The default behaviour of the instrument is to dispay the ratio between these voltages.

We'll be using this functionality creatively to measure the output power of a Buck converter under load.

 

A Keithley engineer posted on EEVBlog how you can use the Voltage Rate functionality to measure power consumption and show the power directly on the screen.

It's done via a TSP script.

The normal inputs of the DMM6500 are used to measure the voltage of a circuit under test.

To measure the current, you have to place a shunt resistor over the sense pins, and put that shunt in series with the circuit you want to measure.

It's best to use a temperature-stable low-value resistor. The value itself isn't critical: you can use the DMM6500 to measure it and use that value later.

 

image

 

 

The script measures both inputs at the same time in Range mode:

 

    ratio = dmm.measure.read(readingBuffer)

 

The Input voltage is used as is.

The Sense voltage is divided by the shunt resistance to calculate the current (Ohms Law).

Power is calculated by multiplying the two values.

 

Here is the preparation part of the script.

The shunt value is measured by me before setting up the circuit, using a 4 wire resistance script.

 

shuntValue = 0.080430235019587  --ohms
readings = 1000
timeBetween = 0.1 --seconds
readingBuffer = buffer.make(readings, buffer.STYLE_FULL) 
powerBuffer = buffer.make(readings, buffer.STYLE_WRITABLE) 
buffer.write.format(powerBuffer, buffer.UNIT_WATT, buffer.DIGITS_5_5) 
dmm.measure.func = dmm.FUNC_DCV_RATIO
dmm.measure.autorange = dmm.ON
dmm.measure.nplc = 0.1

 

The script collects 1000 readings and then stops.

It sets up two buffers - one to collect the two measurements, one for the resulting power.

Then it sets the instrument in DC Voltage Ratio mode.

 

In the loop, a measurement is made, and then the Ohms Law formula and DC power calculation formulas are run.

 

for i = 1,readings do
    ratio = dmm.measure.read(readingBuffer)
    vsense = readingBuffer.extravalues[i]
    seconds = readingBuffer.seconds[i]
    fractional = readingBuffer.fractionalseconds[i]
    current = vsense / shuntValue --calculates current
    voltage = ratio * vsense --calculates voltage
    power = voltage * current --calculates power
    buffer.write.reading(powerBuffer, power, seconds, fractional, buffer.STAT_TERMINAL)
    delay(timeBetween) --waits to take next measurement 
end

 

The measurements and calculation are stored in the buffer. The meter displays the active value in the powerBuffer.

 

As you can see, the value retrieved at measurement isn't the measured voltage at input, but its ratio in relation to the voltage at vsense.

We can retrieve the real voltage back by multiplying the measured vsense with that ratio.

 

Do More with the Data

 

The measurements and calculated power are stored in buffers on the DMM6500. You can use those buffers:

 

On the instrument, you can use them for graphing,

image

 

and to get statistics:

 

image

 

Via the web interface, you can download the buffers as CSV files:

 

image

 

Keithley also has examples that use Python on a computer (this can be a Raspberry Pi) to stream the data from meter.

Buffers are also accessable via LabVIEW. Just take care that you can't mix TSP and SCPI. But you can port the power script and run all in SCPI.

 

Test Circuit Setup

 

I kept this as last because it's not instrument related.

 

image

I'm measuring the power at the output of a Buck converter.

The converter is powered by a 12 V DC PSU and outputs 5 V.

There's an amp meter in series with the DMM6500, just for validation. It's not required.

The current is measured with a shunt of 80 mΩ. It's in series with the output of the Buck output (and the DMM). The sense input measures the voltage drop over the shunt.

The load of the Buck circuit is my electronic DC load. It's set to sink 90 mA.

The voltage is measured directly at the output of the Buck.

 

Tip:

For small measurements you can use a µCurrent to translate current into voltage, instead of a shunt.

 

Related Blog
Keithley Bench Digital Multimeter - Review
Software Control Options Pt 1 - TSP Script Builder, LabVIEW, Web Interface
TSP Script Example - Measure Power
How to Create a Bitmap for a Custom App
Verify a µCurrent Manually
Verify a µCurrent in an Automated Setup
Measure Amp-Hours of a microcontroller with a µCurrent
Trigger from External Trigger Input
Trigger from External Trigger Input in LabVIEW
Software Control Options Pt 2 - Test Commands with Communicator
App to Hold Measurements

Store Multiple Measurements Manually

Script Example - Externally Triggered Measurements
  • Sign in to reply

Top Comments

  • Jan Cumps
    Jan Cumps over 6 years ago +3
    for the next blog: Measuring consumption of a microcontroller in different power modes, in amp-hours It's Keithley's app note Data Logging of Power Profiles from Wireless IoT and Other Low-Power Devices…
  • genebren
    genebren over 6 years ago +2
    Interesting write-up. I too would like an easy way to test the efficiency of circuits like a boost converter. I have manually tested a few points to check the efficiency, but it would be nice to automatically…
  • Jan Cumps
    Jan Cumps over 6 years ago in reply to genebren +2
    Yes. I could start from a flow that I already have: Programmable Electronic Load - Automating a DC Switcher Efficiency Test with LabVIEW In that project I use the Load to measure voltage and current at…
  • Jan Cumps
    Jan Cumps over 4 years ago in reply to czecht

    The 2000-SCAN2000-SCAN is made for this meter. (The doc mentions some older compatible cards: https://www.tek.com/default-accessory-series-manual/model-2000-scan-scanner-card ).

    Someone made their own: https://www.eevblog.com/forum/projects/20-channel-diy-scanner-card-for-keithley-dmms-and-daqs/  .

    Cards from other brands are not compatible.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • czecht
    czecht over 4 years ago in reply to Jan Cumps

    Do you, or anyone out there knows what expansion boards can I plug into Keithley DMM6500?

    Are these ports compatible with Agilent/HP products/boards?

    I just purchased my Keithley DMM6500 and I love it, but I never had a meter that has any expansion slots like mine.

    Thank you very much.

    Tony

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 6 years ago

    for the next blog:

     

    Measuring consumption of a microcontroller in different power modes, in amp-hours

    image

     

    It's Keithley's app note Data Logging of Power Profiles from Wireless IoT and Other Low-Power Devices.

    The script in this app note either runs stand-alone on the instrument using the touch screen, or in combination with a computer using python to stream data.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 6 years ago in reply to genebren

    Yes. I could start from a flow that I already have: Programmable Electronic Load - Automating a DC Switcher Efficiency Test with LabVIEW

    In that project I use the Load to measure voltage and current at destination - and calculate the output power from that. The PSU gives the info on the input power.

    I could replace the Load measurements by those of the DMM6500.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • genebren
    genebren over 6 years ago

    Interesting write-up.  I too would like an easy way to test the efficiency of circuits like a boost converter.  I have manually tested a few points to check the efficiency, but it would be nice to automatically test a broader range of points. With a nice meter (like the DMM6500), programmable load and all of your work in LabView, it seems like you are close to having all the right tools to do this.

     

    Well done!

    Gene

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
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