<?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 - Part 5a: LabVIEW Driver for LAB Switch: Open, Close and Switch functions</title><link>/products/raspberry-pi/b/blog/posts/scpi-on-a-linux-board---part-5a-labview-driver-for-lab-switch-open-close-and-switch-functions</link><description>I&amp;#39;m building a SCPI programmable Lab switch with a Raspberry Pi and PiFace Digital.Communication is over TCP/IP.In this post: the LabVIEW drivers What is this Lab Switch? This is a lab instrument. A switch that can be controlled via command...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: SCPI on a Linux Board - Part 5a: LabVIEW Driver for LAB Switch: Open, Close and Switch functions</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/scpi-on-a-linux-board---part-5a-labview-driver-for-lab-switch-open-close-and-switch-functions</link><pubDate>Sun, 05 Feb 2023 00:07:12 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ca0a724-96bc-4e74-b8e3-59315f8fbc6f</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I&amp;#39;ve made SCPI/LabVIEW driver compatible firmware for the Raspberry Pico:&amp;nbsp;&amp;nbsp;[mention:a5ca1d0cfb37416faf3225b7df294ad3:46448885d0e64133bbfbf0cd7b0fd6f7]&amp;nbsp;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5307&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Part 5a: LabVIEW Driver for LAB Switch: Open, Close and Switch functions</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/scpi-on-a-linux-board---part-5a-labview-driver-for-lab-switch-open-close-and-switch-functions</link><pubDate>Tue, 14 Apr 2020 15:54:57 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ca0a724-96bc-4e74-b8e3-59315f8fbc6f</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I&amp;#39;m using the project in a lab setup here.&lt;/p&gt;&lt;p&gt;A Keithley DMM6500 is used for both voltage and curren t measurement.&lt;/p&gt;&lt;p&gt;When I&amp;#39;m measuring voltage, the current shunt is removed, by first bridging the current meter with relay 1 to keep the design powered, then taking the current leads out of the cirrcuit via relays 2.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The video below shows this, with animation enabled in LabView. (The camera an animation view aren&amp;#39;t fully synched)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span id="131ffebd_5b95_41a0_b495_6e29860cd6d7"&gt;&lt;span&gt;[View:https://www.youtube.com/watch?v=82tcwf1QZfw:1110:699]&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Open connection to SCPI enabled RPi and Keithley DMM6500 (both TCP/IP)&lt;/li&gt;&lt;li&gt;You first see the current meter being bridged then removed (the standard start position - the relais in their NC position).&lt;/li&gt;&lt;li&gt;then a voltage measurement is done over a 150 K resistor powered by 25 V.&lt;/li&gt;&lt;li&gt;then the current meter is brought into the circuit, and the bridge removed (both relais engaged).&lt;/li&gt;&lt;li&gt;a current measurement is done&lt;/li&gt;&lt;li&gt;both relais are brought back to the initial position&lt;/li&gt;&lt;li&gt;close resources.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/236x212/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-7ca0a724-96bc-4e74-b8e3-59315f8fbc6f/1050.contentimage_5F00_206710.png:236:212]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For high definition: right click and open in a new tab:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/754x103/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-7ca0a724-96bc-4e74-b8e3-59315f8fbc6f/8816.contentimage_5F00_206711.png:754:103]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5307&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Part 5a: LabVIEW Driver for LAB Switch: Open, Close and Switch functions</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/scpi-on-a-linux-board---part-5a-labview-driver-for-lab-switch-open-close-and-switch-functions</link><pubDate>Tue, 14 Apr 2020 12:39:19 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ca0a724-96bc-4e74-b8e3-59315f8fbc6f</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;To make it easier to start and stop this (can be used in a daemon service wrapper too) , here are two scripts:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;scpi_face_start.sh&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=text&amp;amp;text=%23%21%2Fbin%2Fbash%0Aecho+%22start+piface.+Wait+5+seconds+to+complete+...%22%0A.%2Flinux_piface_digital_service_cpp+2223+%26%0Asleep+5%0Aecho+%22start+scpi.%22%0A.%2Flinux_scpi_socket+2222+2223+%26%0Aecho+%22start+sequence+completed%22]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;scpi_face_stop.sh&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=text&amp;amp;text=%23%21%2Fbin%2Fbash%0Akillall+-9+%22.%2Flinux_scpi_socket%22%0Akillall+-9+%22.%2Flinux_piface_digital_service_cpp%22]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5307&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Part 5a: LabVIEW Driver for LAB Switch: Open, Close and Switch functions</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/scpi-on-a-linux-board---part-5a-labview-driver-for-lab-switch-open-close-and-switch-functions</link><pubDate>Wed, 19 Dec 2018 14:49:09 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ca0a724-96bc-4e74-b8e3-59315f8fbc6f</guid><dc:creator>kabatom</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;Hey Jan,&lt;/p&gt;&lt;p&gt;I&amp;#39;m currently investigating the possiblitity to use LabVIEW coupled with a RBP 3B and PF2 for an ad-hoc supervising solution. The time I can devote to this is extremely limited, so I&amp;#39;d like to replicate your demo setup and proceed from there on.&lt;/p&gt;&lt;p&gt;Likely due to having virtually zero experience in linux based systems, I&amp;#39;m having a hard time getting the services on the RBP to run. Do I need to recompile them on my RBP and if so, what additional resorces besides libmcp23s17 and libpifacedigital do I require?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I hope this thread necromancy works.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5307&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Part 5a: LabVIEW Driver for LAB Switch: Open, Close and Switch functions</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/scpi-on-a-linux-board---part-5a-labview-driver-for-lab-switch-open-close-and-switch-functions</link><pubDate>Wed, 08 Aug 2018 20:28:53 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ca0a724-96bc-4e74-b8e3-59315f8fbc6f</guid><dc:creator>jack.chaney56</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hokie smokes!!!&amp;nbsp; I might have some relevant information on this topic.&amp;nbsp; I have written a SCPI parser that actually runs on an Arduino Nano (reprogrammed).&amp;nbsp; I was using it for a small engine controller that I am playing with. I would love to get a chance to work with someone that is operating on the LabView side of things.&amp;nbsp; The system uses a serial parser, so there is no need for a message buffer (it parses the command a character at a time). If you are interested, let me know, and we can take the exchange off line.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Jack.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5307&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Part 5a: LabVIEW Driver for LAB Switch: Open, Close and Switch functions</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/scpi-on-a-linux-board---part-5a-labview-driver-for-lab-switch-open-close-and-switch-functions</link><pubDate>Wed, 08 Aug 2018 07:30:54 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ca0a724-96bc-4e74-b8e3-59315f8fbc6f</guid><dc:creator>14rhb</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi Jan,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You can&amp;#39;t beat a good bit of Labview automation and remote interfacing &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-7ca0a724-96bc-4e74-b8e3-59315f8fbc6f/contentimage_5F00_1.png:16:16]&lt;/span&gt;. I&amp;#39;m realling enjoying your series of blogs and am learning along the way also - thank you.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I used Labwindows CVI in the past (effectively a C version of Labview ) and managed to speed up many turgid and error prone measurement tasks plus, it never failed to impress the boss, when he visited the lab.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Rod&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5307&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Part 5a: LabVIEW Driver for LAB Switch: Open, Close and Switch functions</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/scpi-on-a-linux-board---part-5a-labview-driver-for-lab-switch-open-close-and-switch-functions</link><pubDate>Tue, 07 Aug 2018 18:15:20 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ca0a724-96bc-4e74-b8e3-59315f8fbc6f</guid><dc:creator>DAB</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Very good update 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=5307&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Part 5a: LabVIEW Driver for LAB Switch: Open, Close and Switch functions</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/scpi-on-a-linux-board---part-5a-labview-driver-for-lab-switch-open-close-and-switch-functions</link><pubDate>Tue, 07 Aug 2018 17:07:27 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ca0a724-96bc-4e74-b8e3-59315f8fbc6f</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;The Pi can drive a series of these PiFace Digital boards. I believe they can take 4 addresses, and the code would be able to adopt to that with little change&lt;/p&gt;&lt;p&gt;For lab usage this will work in many settings...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;.... if one would be looking for an industry ready device: the Hercules family is industry sturdy, with redundant hardare for everything used here, and can drive at least as many devices.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve published SCPI code for that family before over here.&lt;/p&gt;&lt;p&gt;If USB or UART communication is needed, the very low end of that family will do. If TCP/IP communication is needed, we&amp;#39;d need a higher family member.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you need a few controllable switches/relays and no industry hardiness is required, I&amp;#39;ve published an Arduino sketch + LabVIEW drivers here : &lt;a class="jive-link-blog-small" href="/challenges-projects/project14/open-arduino/b/blog/posts/arduino-in-test-instrumentation---intro-scpi-programmable-switch"&gt;Arduino in Test Instrumentation - Intro: SCPI Programmable Switch&lt;/a&gt;.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5307&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Part 5a: LabVIEW Driver for LAB Switch: Open, Close and Switch functions</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/scpi-on-a-linux-board---part-5a-labview-driver-for-lab-switch-open-close-and-switch-functions</link><pubDate>Tue, 07 Aug 2018 16:05:24 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ca0a724-96bc-4e74-b8e3-59315f8fbc6f</guid><dc:creator>genebren</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi Jan,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Very nicely done.&amp;nbsp; You have developed some great tools and great LabVIEW skills!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Gene&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5307&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: SCPI on a Linux Board - Part 5a: LabVIEW Driver for LAB Switch: Open, Close and Switch functions</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/scpi-on-a-linux-board---part-5a-labview-driver-for-lab-switch-open-close-and-switch-functions</link><pubDate>Tue, 07 Aug 2018 15:59:23 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7ca0a724-96bc-4e74-b8e3-59315f8fbc6f</guid><dc:creator>shabaz</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Jan,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Awesome project : ) That&amp;#39;s a unique demo too! I like how your computer desktop actually becomes a desktop &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-7ca0a724-96bc-4e74-b8e3-59315f8fbc6f/2781.contentimage_5F00_1.png:16:16]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5307&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>