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
Test & Tools
  • Technologies
  • More
Test & Tools
Blog Do you want to create your own Pico SCPI device, based on PST.. Pico SCPI USBTMC labLib (and labTool)?
  • 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: 10 Nov 2023 1:07 PM Date Created
  • Views 740 views
  • Likes 11 likes
  • Comments 2 comments
  • pico_usbtmc_scpi
  • pico
  • USBTMC
  • Pico SCPI labTool
  • labview
  • scpi
Related
Recommended

Do you want to create your own Pico SCPI device, based on PST.. Pico SCPI USBTMC labLib (and labTool)?

Jan Cumps
Jan Cumps
10 Nov 2023

How to: start your own Pico SCPI project, based on Pico SCPI USBTMC labLib?

image

You can start from the example source:  PST.. Have you worked with the Pico SCPI labTool? and adapt it to your needs. Git and GitHub will help you to get a project set up in minutes.

1: use GitHub Web to start from my template (easiest)

I enabled the template option for this repository on GitHub. This allows you to directly start a fresh repository from the current code base with a few clicks.
image

Done.

2: If you prefer the command line approach:

image
image: a new repository, primed and ready to start a project for  Data Acquisition Board for Pi Pico 

1. on GitHub, create a new (empty) repository (say: pico_scpi_usbtms_relayboard)

2. On your computer, get the latest version of PST:

git clone https://github.com/jancumps/pico_scpi_usbtmc_labtool.git --recurse-submodules

3. On your computer, push the PST code base to your new GitHub repo:

cd pico_scpi_usbtmc_labtool

git push https://github.com/<yourname>/pico_scpi_usbtms_relayboard.git +main:main


You can get the clone url of your new project from GitHub:
image

optionally, you can now delete the cloned repository on your computer. It was only needed to prime your new github repository.

4. On your computer, you can now clone that new repository:

git clone https://github.com/<yourname>/pico_scpi_usbtms_relayboard.git --recurse-submodules

5. On your computer, set an environment variable PICO_SDK_PATH=<path to where you installed the pico sdk>.
You can do this on OS level. And most IDEs allow you to define environment variables (CLion: in the Project wizard. VSCode: in the CMake extension config).

You will get a ready-to-go project, with the same code as the Pico SCPI labTool. Ready to build your own firmware. 
Enjoy.

link to all posts

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

    I enabled the Template option for the repo on GitHub.

    This gives you  a one-click new repository with the latest version of the application and dependencies Heart

    image

    You can directly clone that and start designing.

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

    It's brilliant that this submodule method is available! An excellent way of adding the SCPI functionality to any project that needs it.

    • 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