element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
NI LabVIEW Community
  • Products
  • Dev Tools
  • NI LabVIEW Community
  • More
  • Cancel
NI LabVIEW Community
Labview Blogs LabVIEW temperature measurement with DMM6500 and scanner card - part 1: SCPI conversation
  • Blog
  • LabVIEW Challenge Blogs
  • Forum
  • Documents
  • Quiz
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join NI LabVIEW Community to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 10 Mar 2023 8:48 PM Date Created
  • Views 1240 views
  • Likes 6 likes
  • Comments 1 comment
  • 88ad1490-a97d-11ed-afa1-0242ac120002
  • 2000-scan
  • dmm6500
  • keithley
  • scan-2000
  • labview
  • scpi
Related
Recommended

LabVIEW temperature measurement with DMM6500 and scanner card - part 1: SCPI conversation

Jan Cumps
Jan Cumps
10 Mar 2023
LabVIEW temperature measurement with DMM6500 and scanner card - part 1: SCPI conversation

I'm writing a flow to automate long-term temperature measurement. 
The start is simple: I'll set up as SCPI script that can set up meter and scan card with a thermocouple, then perform a measurement. For the time being, I'll  run it with Keithley's testbed.
In next blogs I'll then move this to a LabVIEW process. And improve the precision by adding reference junction measurement.

image
example script from Keithley

Test Setup

Setup:

  • Keithley DMM6500
  • Keithley 2000-SCAN 10 channel scan card
  • K-type thermocouple

image
a thermocouple in channel 2. Note: wires are wrong way in this phote

Software:

  • a SCPI script that I write in this blog
  • Keithley Communicator

The start is humble. It's Keithley's example adapted to simulated cold junction temperature mode.
In that mode, you "hard code" the temperature of the area where the thermocouple is connected to the scanner card.
I've defined the script to scan channel 2 and 3 - even though nothing is connected to channel 3. It will overflow.
I sample 2 channels to learn myself how to do multiple measurements. In hindsight, I should have bridged CH2 and 3 on the card, so that I'd have valid measurements.

image
The Keithley SCPI test app, just before starting the scan

The First Version of the SCPI Script

*RST;
TRAC:CLE "defbuffer1";
TRAC:POIN 10, "defbuffer1";
FUNC "TEMP", (@2:3);
TEMP:UNIT CELS, (@2:3);
TEMP:TRAN TC, (@2:3);
TEMP:TC:TYPE K, (@2:3);
TEMP:TC:RJUN:SIM 23, (@2:3);
TEMP:NPLC 1, (@2:3);
ROUT:SCAN:INT 60;
ROUT:SCAN:COUN:SCAN 3;
ROUT:SCAN:CRE (@2:3);
ROUT:SCAN:EXP "/usb1/scan24hr", SCAN, ALL;
ROUT:SCAN:REST ON;
:DISP:SCR SWIPE_USER;
INIT;

*WAI;
TRAC:DATA? 1, 6, "defbuffer1", READ;

Here's a view of the results. Channel 2 and 3 sampled 3 times.
All samples are visible in the buffer display on the screen, and I read the 2nd sample of channel 2.

image
Channel 3 measures are in overflow because I didn't connect a thermocouple

Below is how this will look like in LabVIEW, in a few blog posts.

image

scrap pad for my next post - ignore
if you don't ignore, you 'll find the instructions to define channel 1 as the cold junction sampler with a PT100 RTD. It is then set as the external reference for the other channels, instead of the simulation mode used in this blog.




18: Write Operation (TRAC:POIN\s500,\s"defbuffer1")



Return Count: 26 bytes

2: Write Operation (FUNC\s"TEMP",\s(@1:3))

Return Count: 19 bytes

3: Write Operation (TEMP:UNIT\sCELS,\s(@1:2))

Return Count: 22 bytes

4: Write Operation (TEMP:TRAN\sRTD,\s(@1))

Return Count: 19 bytes

5: Write Operation (TEMP:TRAN\sTC,\s(@2))

Return Count: 18 bytes

6: Write Operation (TEMP:UNIT\sCELS,\s(@1:3))

Return Count: 22 bytes

7: Write Operation (TEMP:TRAN\sTC,\s(@2:3))

Return Count: 20 bytes

8: Write Operation (TEMP:TC:TYPE\sK,\s(@2:3))

Return Count: 22 bytes

9: Write Operation (TEMP:TC:RJUN:RSEL\sEXT,\s(@2:3))

Return Count: 29 bytes

10: Write Operation (EMP:NPLC\s1,\s(@2:3))

Return Count: 18 bytes

11: Write Operation (TEMP:NPLC\s1,\s(@2:3))

Return Count: 19 bytes

12: Write Operation (TEMP:NPLC\s1,\s(@2:3))

Return Count: 19 bytes

13: Write Operation (ROUT:SCAN:INT\s60)

Return Count: 16 bytes

14: Write Operation (ROUT:SCAN:COUN:SCAN\s5)

Return Count: 21 bytes

15: Write Operation (ROUT:SCAN:CRE\s(@1:3))

Return Count: 20 bytes

16: Write Operation (ROUT:SCAN:EXP\s"/usb1/scan24hr",\sSCAN,
\sALL)

Return Count: 41 bytes

17: Write Operation (INIT)

Return Count: 4 bytes


Return Count: 27 bytes

19: Write Operation (INIT)

Return Count: 4 bytes

20: Write Operation (*WAI)

Return Count: 4 bytes

21: Write Operation (TRAC:DATA?\s1,\stotalRdgs,\s"defbuffer1",
\sREAD)

Return Count: 43 bytes

link to all posts

  • Sign in to reply
  • Jan Cumps
    Jan Cumps over 2 years ago

    The second blog, where I review this flow in LabVIEW, will be easy. Keithley has added this as an example to their driver.
    Here it is in action. I just added the field to enter the simulated value.

    image

    For the time being, I'm measuring the temperature at the cold junction with a DMM, and enter that in the simulated value field.

    image

    Accuracy will come later, when I install the PT100 on my scanner card.

    • Cancel
    • Vote Up 0 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