<?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>SCPI on a Linux Board - Letter of Intent</title><link>/technologies/test-and-measurement/b/blog/posts/scpi-on-a-linux-board---letter-of-intent</link><description>I&amp;#39;m trying to build a SCPI shell for Linux.I&amp;#39;d like to have it working over TCP/IP on a Raspberry Pi and a BeagleBone. tl;dr It works. The rest of the blog series explains how to build a lab automation device that controls 8 outputs (2 of them r...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: SCPI on a Linux Board - Letter of Intent</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/scpi-on-a-linux-board---letter-of-intent</link><pubDate>Sun, 24 May 2020 09:47:53 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ff248f0-be34-4286-acc5-df716cbcdf65</guid><dc:creator>akshitagupta15june</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Have a look at my entry and please like and share #badass Woman Project Entry - Akshita Gupta &lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=4726&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Letter of Intent</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/scpi-on-a-linux-board---letter-of-intent</link><pubDate>Fri, 22 May 2020 19:17:48 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ff248f0-be34-4286-acc5-df716cbcdf65</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;This was an electronics-light project. Just plug a PiFace Digital on a Pi. &lt;/p&gt;&lt;p&gt;The result is quite useful in the lab though.&lt;/p&gt;&lt;p&gt;Here&amp;#39;s an action photo of the project, where it switches a DMM between an OpAmp&amp;#39;s input and output, time after time. &lt;/p&gt;&lt;p&gt;To measure the gain and dc offset 2000 times, under different conditions.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/620x827/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-7ff248f0-be34-4286-acc5-df716cbcdf65/2350.contentimage_5F00_206699.png:620:827]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=4726&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Letter of Intent</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/scpi-on-a-linux-board---letter-of-intent</link><pubDate>Sun, 27 May 2018 17:14:44 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ff248f0-be34-4286-acc5-df716cbcdf65</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I&amp;#39;ve documented the first working version: &lt;a class="jive-link-blog-small" href="/technologies/test-and-measurement/b/blog/posts/scpi-on-a-linux-board---part-1-proof-of-concept"&gt;SCPI on a Linux Board - Part 1: Proof of Concept&lt;/a&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=4726&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Letter of Intent</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/scpi-on-a-linux-board---letter-of-intent</link><pubDate>Fri, 25 May 2018 20:47:01 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ff248f0-be34-4286-acc5-df716cbcdf65</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Inspired by the BeagleBone Webcast series, I&amp;#39;m picking up this thread again (I have a few running in parallel these days &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-7ff248f0-be34-4286-acc5-df716cbcdf65/5428.contentimage_5F00_1.png:16:16]&lt;/span&gt; )&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve installed the latest Debian on my BB and have just successfully cross-compiled and loaded a test program.&lt;/p&gt;&lt;p&gt;Here&amp;#39;s an action shot of the active debug session:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/823x480/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-7ff248f0-be34-4286-acc5-df716cbcdf65/1351.contentimage_5F00_206698.png:823:480]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;For this exercise, there should be no difference between the Raspberry Pi and BeagleBone for the SCPI library and network socket API.&lt;/p&gt;&lt;p&gt;It&amp;#39;s only when talking to hardware that things will be different, but that&amp;#39;s not the scope of this series.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=4726&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Letter of Intent</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/scpi-on-a-linux-board---letter-of-intent</link><pubDate>Sun, 29 Apr 2018 10:14:41 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ff248f0-be34-4286-acc5-df716cbcdf65</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Some more progress: first contact from LabVIEW&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/699x299/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-7ff248f0-be34-4286-acc5-df716cbcdf65/2727.contentimage_5F00_206694.png:699:299]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;I don&amp;#39;t have the reply working in the LabVIEW flow yet - it works different than serial/usb. But things look good.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=4726&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Letter of Intent</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/scpi-on-a-linux-board---letter-of-intent</link><pubDate>Sat, 28 Apr 2018 15:55:40 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ff248f0-be34-4286-acc5-df716cbcdf65</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;A few learnings from testing LabVIEW with another TCP/IP device (a Tektronix TBS 2000 oscilloscope - I won it in a contest &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-7ff248f0-be34-4286-acc5-df716cbcdf65/contentimage_5F00_1.png:16:16]&lt;/span&gt; ):&lt;/p&gt;&lt;p&gt;I can get things to work with raw TCP/IP - not yet as a VISA instrument.&lt;/p&gt;&lt;p&gt;The Tektronix has all VISA drivers installed and I can contact it over VISA via TCP/IP, but not reliable.&lt;/p&gt;&lt;p&gt;With USB, that scope works just fine.&lt;/p&gt;&lt;p&gt;Have I opened a can of worms?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=4726&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Letter of Intent</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/scpi-on-a-linux-board---letter-of-intent</link><pubDate>Sat, 28 Apr 2018 13:49:28 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ff248f0-be34-4286-acc5-df716cbcdf65</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Well, that didn&amp;#39;t take long.&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/663x290/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-7ff248f0-be34-4286-acc5-df716cbcdf65/contentimage_5F00_206693.png:663:290]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;I have a SCPI parser running now that accepts SCPI commands and sends replies. Easier than I thought it would be.&lt;/p&gt;&lt;p&gt;Achievements unlocked:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;program runs on Raspberry Pi, listens on a tcp/ip port for SCPI and can reply&lt;/li&gt;&lt;li&gt;SCPI library incorporated&lt;/li&gt;&lt;li&gt;cross compiled: developed on windows, executed on linux/Pi, debugged remotely from Windows&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;To do:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;turn this into a daemon, with proper startup and shutdown&lt;/li&gt;&lt;li&gt;test on BeagleBone&lt;/li&gt;&lt;li&gt;make a test instrument. This is just a mock program pretending it&amp;#39;s a digital multimeter.&lt;/li&gt;&lt;li&gt;implement SYSTem:COMMunicate:LAN:CONTrol? : dynamic allocation of control port.&lt;/li&gt;&lt;/ul&gt;&lt;img src="https://community.element14.com/aggbug?PostID=4726&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Letter of Intent</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/scpi-on-a-linux-board---letter-of-intent</link><pubDate>Fri, 27 Apr 2018 21:04:51 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ff248f0-be34-4286-acc5-df716cbcdf65</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;TCP/IP basics work on Raspberry Pi.&lt;/p&gt;&lt;p&gt;Compiled and debugged in Eclipse on a Windows 10 PC, compiled program executed on the Pi:&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/551x295/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-7ff248f0-be34-4286-acc5-df716cbcdf65/contentimage_5F00_206691.png:551:295]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Inspiration: &lt;a class="jive-link-external-small" href="http://www.cs.rpi.edu/~moorthy/Courses/os98/Pgms/server.c" rel="nofollow ugc noopener" target="_blank" title="http://www.cs.rpi.edu/~moorthy/Courses/os98/Pgms/server.c"&gt;http://www.cs.rpi.edu/~moorthy/Courses/os98/Pgms/server.c&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This may not look spectacular, but I think it&amp;#39;s cool that you can compile a C executable on a windows machine, transfer it to the Pi and step through the code in the debugger on that same windows machine - with 1 click on some button&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=4726&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Letter of Intent</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/scpi-on-a-linux-board---letter-of-intent</link><pubDate>Fri, 27 Apr 2018 19:23:57 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ff248f0-be34-4286-acc5-df716cbcdf65</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Good luck Jan.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;DAB&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=4726&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Letter of Intent</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/scpi-on-a-linux-board---letter-of-intent</link><pubDate>Fri, 27 Apr 2018 17:56:20 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ff248f0-be34-4286-acc5-df716cbcdf65</guid><dc:creator>genebren</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Good luck on your project!&lt;/p&gt;&lt;p&gt;Gene&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=4726&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>