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
Open Arduino
  • Challenges & Projects
  • Project14
  • Open Arduino
  • More
  • Cancel
Open Arduino
Blog Arduino in Test Instrumentation - Intro: SCPI Programmable Switch
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Open Arduino to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 6 Apr 2018 10:13 AM Date Created
  • Views 9989 views
  • Likes 18 likes
  • Comments 26 comments
  • diytestequipch
  • arduino_projects
  • ardexpert
  • openarduinoch
  • project 14
  • scpi
  • arduino_test_instrumentation
Related
Recommended

Arduino in Test Instrumentation - Intro: SCPI Programmable Switch

Jan Cumps
Jan Cumps
6 Apr 2018

Arduino in Test Instrumentation

 

To celebrate Project 14's birthday, I'm going to make a programmable lab instrument with the UNO that I received from tariq.ahmad.

The device can be used in a LabVIEW setup and will allow you to control a few relays in an automated test process.

image

 

As proof of concept, I will use it to extend the test setup I made for a recent Road Test:Programmable Electronic Load - Automating a DC Switcher Efficiency Test with LabVIEW

 

Background

 

I'm extending the capabilities of my lab. I want to be able to create repeatable and automated test setups.

The goal is to control the lab instruments and have all measurements logged to a document.

My PSU and scope are programmable. Together with two other element14 community members I've designed a programmable DC load.

What I'm missing is a programmable switch that can be used to turn on or off signals. I'll make one for The Birthday Special: Open Arduino.

 

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

 

Hardware

 

I'll use an Arduino UNO and two relay breakout boards. I received the UNO from element14 to celebrate Project 14's birthday.

I got the two relay boards when I purchased the components from someone who was quitting the electronics hobby a few years ago.

 

image

Given that I have all components and that they are very simple, I don't expect any complexity on the electronics part.

 

image

 

Firmware

details: Arduino in Test Instrumentation - Part 1: SCPI Lib

details: Arduino in Test Instrumentation - Part 2: Firmware

 

The software is a different story. I've automated instruments before with SCPI, but the challenge with the Arduino UNO will be the available memory.

I'll have to fit (or slim down) the SCPI lib that I want to use and leave enough space for serial communication lib and the logic to switch the relays.

 

I'll support the standard SCPI commands and dedicated ones to control both relays in the Arduino firmware.

 

Command Description Example
*IDN? instrument identity

*IDN?

Project14,Arduino SCPI Switch,1,0

*RST reset instrument. Set all switches off *RST
*CLS same as *RST *CLS
:DIGITAL:SWITCH# ON|OFF turn a switch on or off. 1 based :DIGI:SWIT1 ON
:DIGITAL:SWITCH#? get a switch' status. 1 based

:DIGITAL:SWITCH1?

OFF

 

LabVIEW Library

details: Arduino in Test Instrumentation - Part 3a: LabVIEW Driver Intitialisation Block

details: Arduino in Test Instrumentation - Part 3b: LabVIEW Driver Switch Control Block

details: Arduino in Test Instrumentation - Part 3c: LabVIEW Driver Read Status Block

 

The end game is to include the Arduino switcher in the test setup I made for the RoadTest TI SWIFTTm Power Module EVM

image

Just as many instrument manufacturers do, I'll write a LabVIEW library with easy to use blocks: Init, Control and Close.

These blocks will make it easy to include the Arduino switcher into designs and it collaborate in an automated setup.

image

I'll claim success when I'm able to switch some configuration resistors in and out of my device under test to change its operation parameters.

If I can then run a test cycle It should be possible to capture the device's efficiency with 3 separate output voltage settings, with an input range sweeping from lowest to highest values, pulling between 0 and 7 A from the output.

In total this will be more than 2000 measurements that I'll have to capture.

 

That's it. Wish me luck.

 

 

Related Blog
Arduino in Test Instrumentation - Intro: SCPI Programmable Switch
Arduino in Test Instrumentation - Part 1: SCPI Lib
Arduino in Test Instrumentation - Part 2: Firmware
Arduino in Test Instrumentation - Part 3a: LabVIEW Driver Intitialisation Block
Arduino in Test Instrumentation - Part 3b: LabVIEW Driver Switch Control Block
Arduino in Test Instrumentation - Part 3c: LabVIEW Driver Read Status Block
Arduino in Test Instrumentation - Outro: LabVIEW Example

 

 

The LabVIEW project, with driver library and example, is attached.

Attachments:
project14.zip
  • Sign in to reply

Top Comments

  • jw0752
    jw0752 over 7 years ago +5
    This will be another useful and interesting build. Looking forward to following and learning. John
  • Jan Cumps
    Jan Cumps over 7 years ago +5
    I have a new fanboy :
  • genebren
    genebren over 7 years ago +4
    Jan, Nice project. We can always use more test equipment. I look forward to seeing your updates to this project. Gene
Parents
  • Jan Cumps
    Jan Cumps over 7 years ago

    I have a new fanboy image:

    image

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

    Opinions are easy to throw around (I really wanted to used the Dirty Harry quote, but I know better).  But wow, there was a little attitude wrapped around it.

    Gene

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

    Opinions are easy to throw around (I really wanted to used the Dirty Harry quote, but I know better).  But wow, there was a little attitude wrapped around it.

    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