<?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.. Experimental event / trigger support for Pico SCPI labTool - 2: design the registers</title><link>/technologies/test-and-measurement/b/blog/posts/pst-experimental-event-trigger-support-for-pico-scpi-labtool---2-design-the-registers</link><description>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. It would be nice if the PST could supports device dependent SCPI registers. They can be used...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: PST.. Experimental event / trigger support for Pico SCPI labTool - 2: design the registers</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/pst-experimental-event-trigger-support-for-pico-scpi-labtool---2-design-the-registers</link><pubDate>Thu, 21 Sep 2023 22:21:02 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:746ca886-d459-4360-818c-e95965328aeb</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Now ready for the step that I think is needed, to make the SQR / trigger mechanism work: merge the status byte&amp;nbsp;of the USBTMC code, and the one from the SCPI-LIB&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;kept the one in the tmcusb code from the TinyUSB example. I think that&amp;#39;s a mistake, and should have ported the STB of that example over to the STB of the SCPI-LIB.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To make the work structured, I abuse the compiler: I commented out the status variable in the STB code part. To make the compilation fail. I marked&amp;nbsp;the line with a TODO comment&lt;br /&gt;Then compiled the code, and also marked each of the compile error lines with a TODO command.&lt;/p&gt;
&lt;p&gt;VSCode (like many IDEs) has a TODO module that lists all the lines with a TODO comment. I can now navigate to these lines easily, and fix them one by one until the compilation succeeds again.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img height="501" src="/resized-image/__size/998x1002/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-746ca886-d459-4360-818c-e95965328aeb/pastedimage1695334583663v1.png" width="499" alt=" " /&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26877&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PST.. Experimental event / trigger support for Pico SCPI labTool - 2: design the registers</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/pst-experimental-event-trigger-support-for-pico-scpi-labtool---2-design-the-registers</link><pubDate>Wed, 20 Sep 2023 21:05:10 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:746ca886-d459-4360-818c-e95965328aeb</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;This functionality is now available in the development branch:&amp;nbsp;&lt;a id="" href="https://github.com/jancumps/pico_scpi_usbtmc_labtool/tree/develop-set-4" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt;https://github.com/jancumps/pico_scpi_usbtmc_labtool/tree/develop-set-4&lt;/a&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26877&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PST.. Experimental event / trigger support for Pico SCPI labTool - 2: design the registers</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/pst-experimental-event-trigger-support-for-pico-scpi-labtool---2-design-the-registers</link><pubDate>Tue, 19 Sep 2023 20:18:47 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:746ca886-d459-4360-818c-e95965328aeb</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;making the usbtmc event service request channel work is still a far dream, but I have progress on dealing with the registers.&lt;br /&gt;All required SCPI commands are now implemented:&lt;/p&gt;
&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:5281893f-b599-4b54-9c76-170aa70c24d7:type=c_cpp&amp;text=%20%20%20%20%2F%2F%20instrument%20specific%20registers%20commands%0D%0A%20%20%20%20%7B.pattern%20%3D%20%22STATus%3AOPERation%3ADIGItal%3AINPut%3AEVENt%3F%22%2C%20.callback%20%3D%20SCPI_StatusOperationDigitalInputEventQ%2C%7D%2C%0D%0A%20%20%20%20%7B.pattern%20%3D%20%22STATus%3AOPERation%3ADIGItal%3AINPut%3ACONDition%3F%22%2C%20.callback%20%3D%20SCPI_StatusOperationDigitalInputConditionQ%2C%7D%2C%0D%0A%20%20%20%20%7B.pattern%20%3D%20%22STATus%3AOPERation%3ADIGItal%3AINPut%3AENABle%22%2C%20.callback%20%3D%20SCPI_StatusOperationDigitalInputEnable%2C%7D%2C%0D%0A%20%20%20%20%7B.pattern%20%3D%20%22STATus%3AOPERation%3ADIGItal%3AINPut%3AENABle%3F%22%2C%20.callback%20%3D%20SCPI_StatusOperationDigitalInputEnableQ%2C%7D%2C%0D%0A%20%20%20%20%7B.pattern%20%3D%20%22STATus%3AOPERation%3ADIGItal%3AINPut%3APTRansition%22%2C%20.callback%20%3D%20SCPI_StatusOperationDigitalInputPTransition%2C%7D%2C%0D%0A%20%20%20%20%7B.pattern%20%3D%20%22STATus%3AOPERation%3ADIGItal%3AINPut%3APTRansition%3F%22%2C%20.callback%20%3D%20SCPI_StatusOperationDigitalInputPTransitionQ%2C%7D%2C%0D%0A%20%20%20%20%7B.pattern%20%3D%20%22STATus%3AOPERation%3ADIGItal%3AINPut%3ANTRansition%22%2C%20.callback%20%3D%20SCPI_StatusOperationDigitalInputNTransition%2C%7D%2C%0D%0A%20%20%20%20%7B.pattern%20%3D%20%22STATus%3AOPERation%3ADIGItal%3AINPut%3ANTRansition%3F%22%2C%20.callback%20%3D%20SCPI_StatusOperationDigitalInputNTransitionQ%2C%7D%2C%0D%0A]&lt;/p&gt;
&lt;p&gt;Test with NI Visa Interactive&lt;/p&gt;
&lt;p&gt;&lt;img height="314" src="/resized-image/__size/998x628/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-746ca886-d459-4360-818c-e95965328aeb/pastedimage1695154712391v1.png" width="499" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;output:&lt;/p&gt;
&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:e3e51554-1b8f-44ab-8f8c-cc2fdaa97b0c:type=text&amp;text=%23%20button%20not%20pressed%3A%20input%2027%20%28bit%203%29%20high%0D%0A1%3A%20Write%20Operation%20%28STATus%3AOPERation%3ADIGItal%3AINPut%3ACONDition%3F%5Cn%29%0D%0A2%3A%20Read%20Operation%0D%0A4%5Cr%5Cn%0D%0A%0D%0A%23%20button%20pressed%3A%20input%2027%20%28bit%203%29%20low%0D%0A3%3A%20Write%20Operation%20%28STATus%3AOPERation%3ADIGItal%3AINPut%3ACONDition%3F%5Cn%29%0D%0A4%3A%20Read%20Operation%0D%0A0%5Cr%5Cn%0D%0A%0D%0A]&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26877&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PST.. Experimental event / trigger support for Pico SCPI labTool - 2: design the registers</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/pst-experimental-event-trigger-support-for-pico-scpi-labtool---2-design-the-registers</link><pubDate>Mon, 18 Sep 2023 20:27:44 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:746ca886-d459-4360-818c-e95965328aeb</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;for git lovers: I&amp;#39;m working on this experimental feature outside of the &amp;quot;scheduled&amp;quot; new features. An experiment has a different pace than &amp;quot;normal&amp;quot; new functionality.&lt;br /&gt;I created a dedicated branch for the experiment, based on the (at that time) current release. You can see that as the green track on the graph below.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="284" src="/resized-image/__size/430x568/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-746ca886-d459-4360-818c-e95965328aeb/pastedimage1695068535190v1.png" width="215" /&gt;&lt;/p&gt;
&lt;p&gt;Meanwhile we were working on&amp;nbsp;the next &amp;quot;normal&amp;quot; release, adding several incremental features. You can see that dev branch (develop-set-3) in the blue trail.&lt;br /&gt;When that develop branch was cut as a new release (version 3.0), and I merged the dev branch with the main one, my experimental branch was outdated.&lt;br /&gt;You can see the black arrow on 18th (today), where I&amp;nbsp;synchronised the experimental branch with the main branch, to&amp;nbsp;&lt;em&gt;eat&lt;/em&gt; the changes done for this release.&lt;br /&gt;Now my experimental branch is up-to-date with the release 3.0. While safeguarding my experimental changes.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26877&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>