<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>PST.. Have you worked with the Pico SCPI labTool?</title><link>/technologies/test-and-measurement/b/blog/posts/pst-have-you-worked-with-the-pico-scpi-labtool</link><description>Table of Contents

 Introduction 
 How Does it Work? 
 What is Needed? 
 Setting up the PC 
 Download a SCPI Library 
 Create a replica of Pico SCPI labTool in your own GitHub Repository 
 Download the Pico SCPI labTool Project to your PC 
 Building.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: PST.. Have you worked with the Pico SCPI labTool?</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/pst-have-you-worked-with-the-pico-scpi-labtool</link><pubDate>Wed, 01 Nov 2023 20:13:03 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:68549293-3bf0-4afd-97be-a7bf35ff742f</guid><dc:creator>shabaz</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;After lots of troubleshooting with&amp;nbsp;[mention:acaf6a9338de4eef8f6717d5561ed01d:e9ed411860ed4f2ba0265705b8793d05]&amp;nbsp; we got to the bottom of why Matlab didn&amp;#39;t play nice with PST. It turns out that (at least my version of Matlab, which is not up-to-date), the Matlab defaults for line termination insertion are bad or are broken. The &amp;#39;scan&amp;#39; feature in the instrument control toolbox might not work if you have an older buggy version of Matlab. It&amp;#39;s not a big deal, since the workaround is to not do a scan (or to reboot the PST after a scan), or simply use a more recent release of Matlab.&lt;/p&gt;
&lt;p&gt;The following code shows how to set outputs and read inputs, and works with older and current Matlab releases.&lt;/p&gt;
&lt;p&gt;The visa object is deprecated and will be removed in a future release of Matlab; the newer visadev object is the replacement.&lt;/p&gt;
&lt;p&gt;However, the code below should work with older releases as well as the current ones. I&amp;#39;ve added this example to the body of the blog too.&lt;/p&gt;
&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:d7461a8b-8e8a-4c29-a679-a625b56df73c:type=c_cpp&amp;text=pst1_resourcename%20%3D%20%27USB0%3A%3A0xCAFE%3A%3A0x4000%3A%3AE66118604B727B22%3A%3A0%3A%3AINSTR%27%3B%0Apst1%20%3D%20instrfind%28%27Type%27%2C%20%27visa-usb%27%2C%20%27RsrcName%27%2C%20pst1_resourcename%2C%20%27Tag%27%2C%20%27%27%29%3B%0Aif%20isempty%28pst1%29%20%25%20Create%20if%20it%20didn%27t%20exist%0A%20%20%20%20pst1%20%3D%20visa%28%27NI%27%2C%20pst1_resourcename%29%3B%0Aelse%0A%20%20%20%20fclose%28pst1%29%3B%0A%20%20%20%20pst1%20%3D%20pst1%281%29%3B%0Aend%0Afopen%28pst1%29%3B%0Aset%28pst1%2C%20%27EOSCharCode%27%2C%20%27LF%27%29%3B%20%25%20use%200x0a%20aka%20%5Cn%20aka%20line%20feed%20%0Aset%28pst1%2C%20%27EOSMode%27%2C%20%27read%26write%27%29%3B%20%25%20use%20that%20code%20for%20read%20and%20write%21%0A%25%20ok%20send%20some%20stuff%0Aidentity%20%3D%20query%28pst1%2C%20%27%2AIDN%3F%27%29%3B%20%25%20do%20a%20%2AIDN%3F%20query%0Afprintf%28pst1%2C%20%27DIGI%3AOUTP0%201%27%29%3B%20%25%20set%20output%20%230%20%28GPIO22%29%20high%0Ainput_level%20%3D%20str2num%28query%28pst1%2C%20%27DIGI%3AINP2%3F%27%29%29%3B%20%25%20get%20input%20%232%20%28GPIO27%29%20value]&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26651&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PST.. Have you worked with the Pico SCPI labTool?</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/pst-have-you-worked-with-the-pico-scpi-labtool</link><pubDate>Mon, 30 Oct 2023 13:35:14 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:68549293-3bf0-4afd-97be-a7bf35ff742f</guid><dc:creator>TRLA</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;Has anyone found the LabVIEW Virtual Instrument Driver for a version other than 22? I have licenses for 2018 and 2020 and so If I install Community, it will mess up all my licenses. I tried Lynx, but was unable to get it to work.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26651&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PST.. Have you worked with the Pico SCPI labTool?</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/pst-have-you-worked-with-the-pico-scpi-labtool</link><pubDate>Sat, 28 Oct 2023 14:27:32 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:68549293-3bf0-4afd-97be-a7bf35ff742f</guid><dc:creator>ggabe</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;To build the firmware with zero local tool installation on your own computer&amp;nbsp;I made&amp;nbsp;a git builder that posts the firmware on git after each commit. The &amp;quot;magic&amp;quot; is in this file:&amp;nbsp;&lt;a href="https://github.com/u77345/pico_scpi_usbtmc_labtool/blob/main/.github/workflows/main.yml" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt;https://github.com/u77345/pico_scpi_usbtmc_labtool/blob/main/.github/workflows/main.yml&lt;/a&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26651&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PST.. Have you worked with the Pico SCPI labTool?</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/pst-have-you-worked-with-the-pico-scpi-labtool</link><pubDate>Fri, 27 Oct 2023 12:03:46 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:68549293-3bf0-4afd-97be-a7bf35ff742f</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;[mention:b0bc65b9ecdc4307bd967592f00e340a:e9ed411860ed4f2ba0265705b8793d05]&amp;nbsp;, for this part of the documentation:&amp;nbsp;&lt;strong&gt;Download the Pico SCPI labTool Project to your PC&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;It seems that CLion supports&amp;nbsp;clone with submodules (see t&lt;a href="https://youtrack.jetbrains.com/issue/IDEA-75835/Init-Git-projects-submodules-automatically-or-by-asking-user-at-least#focus=Comments-27-2895254.0-0" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt;his forum post&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/1280x720/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-68549293-3bf0-4afd-97be-a7bf35ff742f/pastedimage1698408130500v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This&amp;nbsp;would be needed&amp;nbsp;when&amp;nbsp;cloning the PST in its current incarnation&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26651&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PST.. Have you worked with the Pico SCPI labTool?</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/pst-have-you-worked-with-the-pico-scpi-labtool</link><pubDate>Fri, 27 Oct 2023 10:57:37 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:68549293-3bf0-4afd-97be-a7bf35ff742f</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;The next release (7) will bring a simplification:&amp;nbsp;It &amp;#39;ll no longer be required to separately clone/download the SCPI-LIB. And the&amp;nbsp;&lt;span&gt;SCPI_LIB_PATH variable becomes obsolete.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The&amp;nbsp;PST sources have become simpler in the last release (6). A lot of infra code, and the handling of standard usbtmc and scpi functionality are moved to a lib (PSL).&lt;br /&gt;Soon, the SCPI lib, and the build commands for it,&amp;nbsp;will be&amp;nbsp;integrated into that PSL.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26651&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PST.. Have you worked with the Pico SCPI labTool?</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/pst-have-you-worked-with-the-pico-scpi-labtool</link><pubDate>Sat, 07 Oct 2023 15:48:40 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:68549293-3bf0-4afd-97be-a7bf35ff742f</guid><dc:creator>taifur</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;You write an excellent blog!&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26651&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PST.. Have you worked with the Pico SCPI labTool?</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/pst-have-you-worked-with-the-pico-scpi-labtool</link><pubDate>Wed, 20 Sep 2023 23:51:50 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:68549293-3bf0-4afd-97be-a7bf35ff742f</guid><dc:creator>flyingbean</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;I finally got Visual Code up into running on Windows 10 for Pico. My main Windows 10 PC got too many different tools installed, which caused troubles for Windows environment configuration which required by Visual Code/Pico tool chain.&lt;/p&gt;
&lt;p&gt;Time to play &lt;span&gt;Pico SCPI labTool.&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26651&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PST.. Have you worked with the Pico SCPI labTool?</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/pst-have-you-worked-with-the-pico-scpi-labtool</link><pubDate>Fri, 25 Aug 2023 16:17:59 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:68549293-3bf0-4afd-97be-a7bf35ff742f</guid><dc:creator>javagoza</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Thank you for sharing! I am looking forward to finding some time to try it out soon.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26651&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PST.. Have you worked with the Pico SCPI labTool?</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/pst-have-you-worked-with-the-pico-scpi-labtool</link><pubDate>Wed, 16 Aug 2023 02:59:17 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:68549293-3bf0-4afd-97be-a7bf35ff742f</guid><dc:creator>ggabe</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;For those swimming in the deeper end of the pool, the Rhode Schwartz VISA tester can help to create standard compatible SCPI implementations: &lt;a href="https://www.rohde-schwarz.com/fr/driver-pages/commande-a-distance/3-visa-and-tools_231388.html" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="y"&gt;https://www.rohde-schwarz.com/fr/driver-pages/commande-a-distance/3-visa-and-tools_231388.html&lt;/a&gt;&amp;nbsp;The tester tool royalty free and downloadable without an R&amp;amp;S account.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26651&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PST.. Have you worked with the Pico SCPI labTool?</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/pst-have-you-worked-with-the-pico-scpi-labtool</link><pubDate>Sat, 05 Aug 2023 19:32:58 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:68549293-3bf0-4afd-97be-a7bf35ff742f</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Very interesting post.&lt;/p&gt;
&lt;p&gt;I just started playing around with a PICO, so if I get ambitious, I may try this approach.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26651&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PST.. Have you worked with the Pico SCPI labTool?</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/pst-have-you-worked-with-the-pico-scpi-labtool</link><pubDate>Sat, 05 Aug 2023 07:51:23 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:68549293-3bf0-4afd-97be-a7bf35ff742f</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;For LabVIEW users (or learners), there&amp;#39;s a &lt;a href="https://github.com/jancumps/pico_scpi_labtool_labview_driver/releases/tag/0.0.1" rel="noopener noreferrer" target="_blank"&gt;Virtual Instrument driver&lt;/a&gt; for this instrument.&amp;nbsp;It supports the same functionality as the current firmware: connect over VISA, control a&amp;nbsp;GPIO output pin, release the connection&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img height="210" src="/resized-image/__size/998x420/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-68549293-3bf0-4afd-97be-a7bf35ff742f/pastedimage1691221516655v2.png" width="499" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;action:&lt;/p&gt;
&lt;p&gt;&lt;img height="184" src="/resized-image/__size/400x368/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-68549293-3bf0-4afd-97be-a7bf35ff742f/pastedimage1691221349563v1.png" width="200" alt=" " /&gt;&amp;nbsp;&lt;img height="183" src="/resized-image/__size/874x366/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-68549293-3bf0-4afd-97be-a7bf35ff742f/20230805_5F00_094710.jpg" width="437" alt=" " /&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26651&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>