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 PST.. Release 3 for the Pico SCPI labTool firmware: what's new?
  • 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: 12 Sep 2023 2:41 PM Date Created
  • Views 617 views
  • Likes 11 likes
  • Comments 3 comments
  • pico_usbtmc_scpi
  • pico
  • USBTMC
  • Pico SCPI labTool
  • labview
  • scpi
Related
Recommended

PST.. Release 3 for the Pico SCPI labTool firmware: what's new?

Jan Cumps
Jan Cumps
12 Sep 2023

The Pico SCPI labTool (PST) allows you to connect your PC to equipment to control and monitor all sorts of things. It runs on a Raspberry Pico.
In this post: new functionality available in the Release 3.

image

What's new?

Release 3 adds these new SCPI functions:

get input pin status query the state of an input pin (can be a digital signal, switch status, ...)
set analogue output Control a Pico pin's output value with variable duty cycle
get analogue output value query the current set duty cycle of a Pico pin

DIGI:IN - The device can now be used to detect a get the status of a logic signal on 3 inputs. The Pico GPIO input signal limits apply. If you use this to detect a mechanical switch' state, add debouncing hardware.

ANA:OUT - You can generate a variable duty cycle signal on 3 pins. With the right filtering, you can create a 0 - 3.3 V signal. There's a helper function to retrieve the set value.

Other functionality added:

unique Pico ID in USB string The TMCUSB resource string now uses the unique Pico ID as serial number in the VISA enumeration info. This allows flows to use multiple PSTs.
reserved persistent storage area Part of Flash is reserved for future functionality: persist settings and calibration values
refactoring Factor out i2c initialisation from Adc16 module. Now part of core device duties

The LabVIEW release adds blocks for the new SCPI functions, and 3 examples:
image

How to get the software

check this post for a "how to install firmware and run the first LabVIEW process" video.

download link info
Pico firmware backwards compatible with previous versions. includes the .uf2 file to program your Pico right away
LabVIEW driver backwards compatible with previous versions. driver blocks for new functionality and extra examples

Command reference

This section describes the added commands. It lists

  • the SCPI syntax,
  • LabVIEW Virtual Instrument driver block
  • the pins that are used, 
  • parameters, return values.
get digital input query the state of a digital input 0: GP20
1: GP21
2: GP27
SCPI DIGItal:INPut#?

example: DIGI:INP0?

#: pin
return: state (bool 0|1)

VI

Public/Data/Read Digital In

image

inputs:
pin (int)
outputs:
state (bool 0|1)

set analog output control pin of Pico with variable duty cicle 0: GP16
1: GP17
2: GP18
developed by shabaz 
SCPI ANAlog:OUTPut#:RAW <0-4095> inputs:
pin (int)
Duty cycle value (integer 0-4095)
outputs:
na
VI

Public/Action-Status/Analog Out Control

image

inputs:
pin (int)
duty cycle (integer 0-4095)
outputs:
na

get analog output query the set duty cycle set on a pin of Pico 0: GP16
1: GP17
2: GP18
developed by shabaz 
SCPI ANAlog:OUTPut#:RAW? inputs:
pin (int)
outputs:
Duty cycle value (integer 0-4095)
VI

Public/Data/Read Analog Out

image

inputs:
pin (int)
outputs:
duty cycle (integer 0-4095)

For the compete reference:  PST.. Program the Pico SCPI labTool? 

New LabVIEW examples

You can run all examples with a Pico programmed with the PST firmware.

  • Generate an analogue output signal and read its value back
    image
  • Check the speed of digital output switching
    image
  • A pass / fail scenario demo (see also  PST.. A little project for the Pico SCPI labTool: resistor pass / fail test bed)
    image

link to all posts

  • Sign in to reply
  • Jan Cumps
    Jan Cumps over 1 year ago

    It's no longer in Beta. The 3.0 release is cut. I updated the post.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 1 year ago in reply to shabaz

    > Is it worth to add a link to or embed the video that shows how it was installed and used

    I added a link to the post containing the video. I cant' seem to embed that video itself.

    /products/devtools/ni-labview/b/blog/posts/lesson-10---labview-and-the-raspberry-pi-pico-using-the-scpi-labtool?ICID=labview-DCH-enrollment

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 1 year ago

    This is great! Thanks for including the ready-built .uf2 file too, nice to be able to quickly try it out within minutes.

    Is it worth to add a link to or embed the video that shows how it was installed and used (I can't find the link!) since it's so extremely easy to try out, people might not realize!

    I'm going to give this beta release a tryout today. 

    • 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