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 Scanner Card - Automation with TSP script
  • 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: 13 Mar 2023 9:07 PM Date Created
  • Views 661 views
  • Likes 8 likes
  • Comments 0 comments
  • 88ad1490-a97d-11ed-afa1-0242ac120002
  • 2000-scan
  • dmm6500
  • keithley
  • scan-2000
  • tsp
Related
Recommended

Keithley DMM6500 Scanner Card - Automation with TSP script

Jan Cumps
Jan Cumps
13 Mar 2023
Keithley DMM6500 Scanner Card - Automation with TSP script

The Keithley DMM6500 / DAQ6510 family supports Test Script Processing (TSP) scripts. They are an alternative for SCPI control. The underlying scripting language is LUA.
In this post, I'm showing a TSP script, and a brief look at the TestScriptBuilder IDE.

The Pre-Monitor Example

This is based on an example that Keithley wrote for the DAQ6510 with 7700 multiplexer card. I ported it to a DMM6500 with 2000-SCAN card.
From the example readme:

image

I made the following changes:

  • I measure temperature from channel 2, where my thermocouple is connected. (original: channel 101)
  • I measure 1 resistor on channel 3 (original 4 resistors on channels 102:105)
  • I simulate the thermocouple cold junction temperature (original uses 7700 internal reference)
  • I run 1 scan cycle (original: 10)

TSP can be used for remote control, as alternative for SCPI. The functionality in that case is comparable.
Additionally, it can be used to write scripts that can be run locally on the meter itself, startup scripts and apps.

TSP Script

-- monitor temperature on channel 2
reset()
channel.setdmm("2", dmm.ATTR_MEAS_FUNCTION, dmm.FUNC_TEMPERATURE, dmm.ATTR_MEAS_TRANSDUCER, dmm.TRANS_THERMOCOUPLE, dmm.ATTR_MEAS_THERMOCOUPLE, dmm.THERMOCOUPLE_K, dmm.ATTR_MEAS_REF_JUNCTION, dmm.REFJUNCT_SIMULATED)
channel.setdmm("2", dmm.ATTR_MEAS_SIM_REF_TEMP, 26)
channel.setdmm("2", dmm.ATTR_MEAS_UNIT, dmm.UNIT_CELSIUS)

-- set limit high on monitor and trigger scan when high limit exceeds
scan.monitor.channel = "2"
scan.monitor.limit.high.value = 30
scan.monitor.mode = scan.MODE_HIGH

-- scan 2-wire resistance on channel 3
channel.setdmm("3", dmm.ATTR_MEAS_FUNCTION, dmm.FUNC_RESISTANCE, dmm.ATTR_MEAS_RANGE_AUTO, dmm.ON)

-- create scan
scan.create("2:3")
scan.scancount = 1

-- initiates the monitoring of channel 2 conditions, which will enable the scan when it crosses the temperature threshold.
trigger.model.initiate()

Active debug session

Keithley released an IDE for TSP development. It includes a debugger that allows you to step through the code.

image

Action: The video shows that the scanner waits until the test device (me) has reached 30°. Then it runs the scan.

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

link to all posts

  • Sign in to reply
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