<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-4273799050747704870</atom:id><lastBuildDate>Mon, 09 Sep 2024 08:29:36 +0000</lastBuildDate><category>LabVIEW</category><category>Instrument Driver</category><category>IVI-C</category><category>IVI</category><category>IVI-COM</category><category>LXI</category><category>VISA</category><category>Data</category><category>Memory Management</category><category>NIWeek</category><category>AutoTestCon</category><category>GPIB</category><category>LAN</category><category>Performance</category><category>Software Engineering</category><category>API</category><category>Agilent</category><category>I/O</category><category>IEEE</category><category>PXI</category><category>SCPI</category><category>Boston</category><category>FPGA</category><category>LAVA</category><category>Linux</category><category>Mathworks</category><category>Matlab</category><category>NAS</category><category>Playskool</category><category>RIO</category><category>Robots</category><category>Rohde Schwarz</category><category>STEM</category><category>Spy</category><category>community</category><category>serial</category><title>Open Measurements</title><description>Thoughts on LabVIEW Data Acquisition and Instrument Control</description><link>http://openmeas.blogspot.com/</link><managingEditor>noreply@blogger.com (Brian Powell)</managingEditor><generator>Blogger</generator><openSearch:totalResults>38</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-8074787041784974837</guid><pubDate>Mon, 13 Sep 2010 19:21:00 +0000</pubDate><atom:updated>2010-09-13T14:21:24.811-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Agilent</category><category domain="http://www.blogger.com/atom/ns#">AutoTestCon</category><category domain="http://www.blogger.com/atom/ns#">I/O</category><category domain="http://www.blogger.com/atom/ns#">IEEE</category><category domain="http://www.blogger.com/atom/ns#">Instrument Driver</category><category domain="http://www.blogger.com/atom/ns#">IVI</category><category domain="http://www.blogger.com/atom/ns#">IVI-C</category><category domain="http://www.blogger.com/atom/ns#">IVI-COM</category><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><category domain="http://www.blogger.com/atom/ns#">PXI</category><title>Agilent’s Endorsement of PXI</title><description>&lt;p&gt;At IEEE AUTOTESTCON today, Agilent announced the release of 43 PXI devices, their strongest commitment to PXI to date.&lt;/p&gt;  &lt;p&gt;This is a great endorsement for modular instrumentation on the PXI platform.&amp;#160; It’s also an acknowledgement that no single instrumentation bus is perfect for every test scenario.&lt;/p&gt;  &lt;p&gt;As a software guy, I was especially pleased to see this comment in the &lt;a href=&quot;http://new.eetimes.com/electronics-products/electronic-product-reviews/test-measurement/4207593/Agilent-launches-broad-spectrum-assault-into-modular-PXI-and-AXIe-markets&quot; target=&quot;_blank&quot;&gt;EE Times product review&lt;/a&gt;…&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Software and I/O is not an afterthought for high-performance instruments, but an integral part of the system-level execution that users must implement. […] Each module also includes drivers which are specific to the operating environment: IVI-C, IVI-COM, and [LabVIEW] G, with context-sensitive help…&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;As I’ve said in &lt;a href=&quot;http://openmeas.blogspot.com/2006/09/ivi-c-and-ivi-com.html&quot; target=&quot;_blank&quot;&gt;earlier posts&lt;/a&gt;, no single driver technology works well in all development environments.&amp;#160; So I’m pleased to see that every Agilent PXI module includes drivers for several different development environments—IVI-C for C/C++ users, IVI-COM for Microsoft COM languages, and LabVIEW drivers for LabVIEW users.&lt;/p&gt;  &lt;p&gt;I have not yet seen the LabVIEW drivers for Agilent’s PXI modules, but I’m anxious to see what they look like, and see how well they work in the LabVIEW environment.&amp;#160; Stay tuned.&lt;/p&gt;  </description><link>http://openmeas.blogspot.com/2010/09/agilents-endorsement-of-pxi.html</link><author>noreply@blogger.com (Brian Powell)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-3199266857433619620</guid><pubDate>Tue, 01 Jun 2010 17:44:00 +0000</pubDate><atom:updated>2010-06-01T14:58:52.904-05:00</atom:updated><title>GPIB vs. LAN for Instrumentation (2010 Update)</title><description>&lt;p&gt;I got an email a friend last week, with this simple question...&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&quot;What&#39;s your take on reliability of programming [Brand A&#39;s] instruments via Ethernet &amp;amp; GPIB?&quot;&lt;/blockquote&gt;&lt;p&gt;This friend is a Certified LabVIEW Architect, and designs and implements a variety of test and measurement applications for her customers.&lt;/p&gt;&lt;p&gt;She&#39;s also one of my best friends, and her livelihood depends on my honest advice.&lt;/p&gt;&lt;p&gt;Here&#39;s what I told her...&lt;/p&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;p&gt;1) GPIB just works.  It&#39;s proven itself reliable and robust over a few decades.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;2) LAN, I think, can be reliable, too.  It&#39;s proven technology, obviously.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;3) You&#39;d want to put some thought into the network architecture.  For example, I&#39;d probably want to find a good network hub, and configure static IP addresses on the computer and all the instruments.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;4) Does the host computer have to also be on a corporate network?  If so, I&#39;d have two network cards in the computer--one for the corporate network, and one for the instrumentation.  In this case, I would probably ask corporate IT if they want to advise on any network settings/requirements they would like to see, since the computer is acting as a router in this case.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;5) Related to #4, are there any security requirements to be aware of?  E.g., would you need to block access from the rest of the internet trying to access your instruments?  It can be done, but you have to know to set it up.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;6) Is performance a concern?  What kind of traffic is going on between instruments and the computer?  LAN is faster for bulk data transfer.  GPIB is faster for small, simple readings.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;7) LAN allows for some interesting possibilities for network synchronization, web access, long distances between devices, and other features.  If you think you need those, we can talk further.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Summary:  Both work.  If GPIB is sufficient for your application, I&#39;d be inclined to start there as a path of least resistance.  But I wouldn&#39;t be afraid to use LAN; I&#39;d just go in expecting it to be a little more complicated.&lt;/p&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2010/06/gpib-vs-lan-for-instrumentation-2010.html</link><author>noreply@blogger.com (Brian Powell)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-7918951684438375375</guid><pubDate>Tue, 10 Feb 2009 15:27:00 +0000</pubDate><atom:updated>2022-11-19T17:12:52.551-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">FPGA</category><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><category domain="http://www.blogger.com/atom/ns#">RIO</category><category domain="http://www.blogger.com/atom/ns#">Robots</category><title>A Short Robot Video</title><description>&lt;p&gt;In my &lt;a href=&quot;http://openmeas.blogspot.com/2008/12/labview-api-design-quick-case-study.html&quot;&gt;last post&lt;/a&gt;, I talked about the instrument driver for a Hokuyo LIDAR that I&#39;ve been working with. The new driver that supports more models (and supports them all better) will be posted to &lt;a href=&quot;http://ni.com/idnet/&quot;&gt;IDNet&lt;/a&gt; in the next week or two.&lt;/p&gt;

&lt;p&gt;I thought I&#39;d show you how I was actually using the LIDAR. Meet NIcholas, a robot I&#39;ve been working with for the last few weeks...&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYqZCBx3zbKDtdy3YaCWQ9SpuHWWCBtt9wYcsadFF9q8ADTzb_PcQTIIuJcbDCv7g72zbfoMQcI2gf3GfGjKMtBRkD4gXcsRXPdmczOlfaaXSJSLJvnN0zU5Fao649GuUdExZGV5uzuzE/s1600-h/20090211_0003.jpg&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5301571477305482306&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 336px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYqZCBx3zbKDtdy3YaCWQ9SpuHWWCBtt9wYcsadFF9q8ADTzb_PcQTIIuJcbDCv7g72zbfoMQcI2gf3GfGjKMtBRkD4gXcsRXPdmczOlfaaXSJSLJvnN0zU5Fao649GuUdExZGV5uzuzE/s400/20090211_0003.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;NIcholas is based on a radio-controlled car platform, but is controlled entirely by the on-board single-board RIO computer running LabVIEW Real-Time and LabVIEW FPGA.&lt;/p&gt;
&lt;span class=&quot;fullpost&quot;&gt;
&lt;p&gt;&lt;a href=&quot;http://www.ni.com/singleboard/&quot;&gt;Single-board RIO&lt;/a&gt; is an OEM-able circuit board that contains both LabVIEW Real-time and LabVIEW FPGA targets. It&#39;s similar in functionality to the &lt;a href=&quot;http://www.ni.com/compactrio/&quot;&gt;compactRIO&lt;/a&gt; platform. I&#39;m using the Real-time part for processing the LIDAR data, and the FPGA for controlling the motors and steering.&lt;/p&gt;

&lt;p&gt;I didn&#39;t build NIcholas myself; he was built by an intern last summer. As a research project, I&#39;ve taken him under my wing for a while to learn more about LabVIEW on the RIO platform, and a little bit about robotics.&lt;/p&gt;

&lt;p&gt;NIcholas doesn&#39;t have much of a mission, yet. He just drives around autonomously and tries to avoid obstacles. The LIDAR is used to detect obstacles and find the clearest path to take.&lt;/p&gt;

&lt;p&gt;Here&#39;s a short video showing NIcholas in action...&lt;/p&gt;

&lt;p&gt;&lt;div style=&quot;padding:75% 0 0 0;position:relative;&quot;&gt;&lt;iframe src=&quot;https://player.vimeo.com/video/772864632?h=66dea42cdd&amp;amp;badge=0&amp;amp;autopause=0&amp;amp;player_id=0&amp;amp;app_id=58479&quot; frameborder=&quot;0&quot; allow=&quot;autoplay; fullscreen; picture-in-picture&quot; allowfullscreen style=&quot;position:absolute;top:0;left:0;width:100%;height:100%;&quot; title=&quot;NIcholas&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;script src=&quot;https://player.vimeo.com/api/player.js&quot;&gt;&lt;/script&gt;&lt;/p&gt;

&lt;p&gt;For more information on robotics with LabVIEW, see &lt;a href=&quot;http://ni.com/robotics/&quot;&gt;ni.com/robotics&lt;/a&gt;.&lt;/p&gt;
&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2009/02/short-robot-video.html</link><author>noreply@blogger.com (Brian Powell)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYqZCBx3zbKDtdy3YaCWQ9SpuHWWCBtt9wYcsadFF9q8ADTzb_PcQTIIuJcbDCv7g72zbfoMQcI2gf3GfGjKMtBRkD4gXcsRXPdmczOlfaaXSJSLJvnN0zU5Fao649GuUdExZGV5uzuzE/s72-c/20090211_0003.jpg" height="72" width="72"/><thr:total>5</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-5106720454193707765</guid><pubDate>Fri, 26 Dec 2008 15:23:00 +0000</pubDate><atom:updated>2020-03-06T21:13:10.428-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">API</category><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><title>LabVIEW API Design: A Quick Case Study</title><description>Happy holidays, everybody. It&#39;s Friday, December 26, and I&#39;m one of a handful of NI Austin employees not taking a vacation today. I got a &lt;em&gt;really&lt;/em&gt; good parking spot. :)&lt;br /&gt;
&lt;br /&gt;
A couple of recent blog comments have asked for more thoughts on LabVIEW API design. As it happens, I&#39;ve been working with a device lately with a LabVIEW instrument driver that I&#39;m not entirely happy with. So I will use this driver as an example to highlight a few points on API design.&lt;br /&gt;
&lt;br /&gt;
To be fair, this driver is actually pretty good. It&#39;s a driver for a Hokuyo laser rangefinder, written by one of our interns. I think this is the first driver that we&#39;ve written for a laser rangefinder, also called a LIDAR. The first driver for a particular type of instrument is hard. (That&#39;s why our instrument driver development tools encourage you to start with a driver for a similar instrument if you can.)&lt;br /&gt;
&lt;br /&gt;
I&#39;m revisiting this driver for a couple of reasons... 1) I am trying to extend the driver to support a newer, faster model in the same LIDAR family, and 2) I&#39;m trying to get data from my current LIDAR faster.&lt;br /&gt;
&lt;br /&gt;
If the first driver of a particular type is hard, the second is harder. Once I have two similar, but different, instruments, I have to resolve the differences in a way that makes sense for both devices.&lt;br /&gt;
&lt;br /&gt;
Okay, let&#39;s dive into the API...&lt;br /&gt;
&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 130%;&quot;&gt;&lt;strong&gt;Not Enough Choices&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When Initialize is called, instrument drivers generally query the instrument they are talking to, in order to ensure that it&#39;s really the right kind of instrument. Most Initialize functions let you turn this check off, either for performance reasons, or to let you try to use this driver for a different instrument with a compatible set of commands.&lt;br /&gt;&lt;br /&gt;Here&#39;s the help window for the Hokuyo URG-04LX instrument driver Initialize VI...&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikRcWT0543cIp9RjufmxVSwXkV05TTHTKu0vhe9LuPLeJodHpy_qc7FlbE-w0X26Xq_2lmTkFDLs6XEOybaMJFq_HyzRIz8XO4OkOIZpkeLbZve5B3s1bxXBI4IYsRxgdIPpoC7uHsC7E/s1600-h/init-help.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5284136032209833298&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikRcWT0543cIp9RjufmxVSwXkV05TTHTKu0vhe9LuPLeJodHpy_qc7FlbE-w0X26Xq_2lmTkFDLs6XEOybaMJFq_HyzRIz8XO4OkOIZpkeLbZve5B3s1bxXBI4IYsRxgdIPpoC7uHsC7E/s400/init-help.png&quot; style=&quot;display: block; height: 229px; margin: 0px auto 10px; text-align: center; width: 400px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;There&#39;s something missing that just about every instrument driver Initalize function includes--the &quot;ID Query&quot; Boolean input. (&quot;ID&quot; as in &quot;Identification&quot;.)&lt;br /&gt;&lt;br /&gt;This latter example is what I was trying to do. I had a new model of Hokuyo URG LIDAR that I wanted to talk to. As expected, the instrument driver failed on the Initialize, since the identification string returned from the LIDAR didn&#39;t match an expected value.&lt;br /&gt;&lt;br /&gt;Why wasn&#39;t the ID Query Boolean included on the Initialize VI? I don&#39;t know. I can imagine that the author didn&#39;t feel confident that the code worked with anything more than the specific hardware he or she tested. But I still would have included the Boolean, to make it easier for end users to try anyway.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Too Many Choices&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There&#39;s another input on Initialize labelled &quot;Protocol&quot;...&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-gx6BbbUDx5RpdlNaSRUIKn_tVgTAD0QYtcj07El6gUGjs5LnJ-1fq0kL3LGLiD9lNE8eiSfgyyEm1gwHFsFBRiOwLcI2e0p4WKg2wDkaqOVLVbYcDfTylvX5fxc1eDQ5bhC-bDHHNyE/s1600-h/init-fp.png&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5284143445252515906&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-gx6BbbUDx5RpdlNaSRUIKn_tVgTAD0QYtcj07El6gUGjs5LnJ-1fq0kL3LGLiD9lNE8eiSfgyyEm1gwHFsFBRiOwLcI2e0p4WKg2wDkaqOVLVbYcDfTylvX5fxc1eDQ5bhC-bDHHNyE/s400/init-fp.png&quot; style=&quot;cursor: pointer; display: block; height: 400px; margin: 0px auto 10px; text-align: center; width: 385px;&quot; /&gt;&lt;/a&gt;This LIDAR has two slightly different ASCII command sets that it can support--version 1.1 and version 2.0.&lt;br /&gt;&lt;br /&gt;How does a user know which to choose? Let&#39;s see what the help says for this input...&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRdgCPxHL8Qtx-HIC6vNpI9RqlgAYeB9DdTe_gGFboLzh7hltZTEyOX0aaUouMSy5jISCGDKRxSa-WMMmwyL0VJ4mZVthpX4ATXhno693s5EDtjnKGcO3azsHOG1Taay_JkyH_FwxS9Ko/s1600-h/protocol-help.png&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5284144642538885858&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRdgCPxHL8Qtx-HIC6vNpI9RqlgAYeB9DdTe_gGFboLzh7hltZTEyOX0aaUouMSy5jISCGDKRxSa-WMMmwyL0VJ4mZVthpX4ATXhno693s5EDtjnKGcO3azsHOG1Taay_JkyH_FwxS9Ko/s400/protocol-help.png&quot; style=&quot;cursor: pointer; display: block; height: 140px; margin: 0px auto 10px; text-align: center; width: 400px;&quot; /&gt;&lt;/a&gt;Hmm. Sounds like 2.0 is better. Why not default to that? Why give the user a choice at all?&lt;br /&gt;&lt;br /&gt;I can think of two reasons. First and most importantly, early units of this model of LIDAR had firmware that don&#39;t support SCIP 2.0. So, if we assume that SCIP 2.0 is available, this driver wouldn&#39;t work with those units. Second, the SCIP 2.0 protocol uses a few more bytes per command than the SCIP 1.1 protocol, and thus might be slightly slower in certain uses.&lt;br /&gt;&lt;br /&gt;But I think we should not expose this protocol choice to users. Here&#39;s my reasoning... 1) The only users of this LIDAR that we know are using it with LabVIEW have the latest firmware, thus they wouldn&#39;t be affected by depending on 2.0. 2) The firmware is field-upgradable, so the user could update the LIDAR to be compatible with the driver. 3) The newer model of LIDAR I&#39;m using only supports the 2.0 protocol, so it&#39;s confusing to have the option for 1.1 when it won&#39;t work on some devices. 4) The extra bytes for the commands don&#39;t seem to have a measurable impact; the measurement time of the instrument appears to be the gating factor on performance. 5) Dropping support for the old command set lets us remove almost half the code in the driver. Most VIs have a case structure for the 1.1 and 2.0 cases. We can now remove those case structures and just leave the 2.0 code inline.&lt;br /&gt;&lt;br /&gt;Another couple of minor nit-picks as long as I&#39;m showing you this front panel for Initialize... I would have hidden the digital displays for baud rate and protocol. The menu ring&#39;s label says 19200, so I don&#39;t need to see that the data value is also 19200. And the protocol data value of &quot;1&quot; is used only internally and doesn&#39;t need to be exposed to the user.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Giving Users Choices&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I seem to have come up with two contradictory examples about giving users choices. For ID Query, I&#39;m complaining that the API designer didn&#39;t give me the choice to turn it off. For the protocol, I&#39;m complaining that the API designer gave me a choice I didn&#39;t want to make.&lt;br /&gt;&lt;br /&gt;I think it all comes down to a judgement call. What are the chances that someone is going to want to use one of Hokuyo&#39;s other models of LIDARs? High, I think. What are the chances that somebody really must use the 1.1 communications protocol. Low, I think.&lt;br /&gt;&lt;br /&gt;If the API designer really wanted to support both communications protocols, I would insist that he or she document how to choose between them. Which leads to a related issue in the driver...&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Documenting Expected Usage&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;One of these LIDARs can use serial to communicate. (Both can use USB.) With serial, one of the parameters you have to configure is the baud rate--the communication speed of the device.&lt;br /&gt;&lt;br /&gt;Most serial devices use a baud rate configured through either DIP switches, or through a front panel menu that stores the rate in non-volatile storage.&lt;br /&gt;&lt;br /&gt;The Hokuyo URG-04LX uses a command sent through the serial port to configure the baud rate for the serial port. This is a classic &quot;chicken and egg&quot; problem. I have to use the serial port to configure the serial port.&lt;br /&gt;&lt;br /&gt;When this device powers on, it defaults to 19,200 baud. If I want to transfer data at 115,200 baud, I have to connect at 19,200, then send a command to tell the LIDAR to communicate at 115,200 baud, then change my own connection to 115,200 before continuing the conversation.&lt;br /&gt;&lt;br /&gt;Now suppose I finish my program and want to run it again. What should the initial baud rate be? In this case, I have to know that when I reconnect to the device, that it is already configured to 115,200 baud. (Or I have to reset or power-cycle the LIDAR in between programs, to revert to 19,200 baud.)&lt;br /&gt;&lt;br /&gt;This can get pretty confusing, which is why my most devices configure their baud rates through physical switches.&lt;br /&gt;&lt;br /&gt;Back to the API, there are two places where baud rate can be configured. First is on Initialize, as shown above. As I learned by studying the block diagram of Initialize, this baud rate is used for the initial communications to the instrument.&lt;br /&gt;&lt;br /&gt;The second place you configure baud rate is with a configuration VI...&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioAbuK9svoEkACrwoQqAejET2S43mE1KcL6BTicba68rOm57f1EhhdMNjD7fYqpC-pwYNQKytxkD-gVsaaeTR28Tt0hLZYPh1-6wX7XBcecBlopWeL_EWIwwxjyN2aUpuMkUQCeMxXIqI/s1600-h/baudrate-help.png&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5284173805058604642&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioAbuK9svoEkACrwoQqAejET2S43mE1KcL6BTicba68rOm57f1EhhdMNjD7fYqpC-pwYNQKytxkD-gVsaaeTR28Tt0hLZYPh1-6wX7XBcecBlopWeL_EWIwwxjyN2aUpuMkUQCeMxXIqI/s400/baudrate-help.png&quot; style=&quot;cursor: pointer; display: block; height: 198px; margin: 0px auto 10px; text-align: center; width: 400px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As I learned by studying the block diagram of this VI, it sends a command to the LIDAR to configure its serial baud rate. It does not change the baud rate of the host side.&lt;br /&gt;&lt;br /&gt;So I think the expected usage is that you would call Initialize to establish the initial connection, then Configure Serial Baud Rate to increase the LIDAR link speed, and then use a VISA property node to change the host link speed. And I think you have to put in a short delay after that to get things to settle down after the baud rate change on the LIDAR.&lt;br /&gt;&lt;br /&gt;Suggestion #1: Document this! Don&#39;t make every user have to figure this out on their own. If nothing else, make an example. It may not be a common use case, but if it&#39;s non-intuitive, an example or a little bit of documentation can be very helpful.&lt;br /&gt;&lt;br /&gt;Suggestion #2: If two steps should always happen together, combine them. I modified the Configure Serial Baud Rate VI to also change the local baud rate and add the delay. That way, the end user doesn&#39;t have to remember to do this. I also thought about moving all of this into Initialize (which would take two baud rate inputs--initial, and desired). I voted against this, since there might be a use case where you just want to change the baud rate after you&#39;ve already initialized.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 130%; font-weight: bold;&quot;&gt;Making Changes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So what&#39;s going to happen to this instrument driver? For myself, I&#39;ve hacked together an instrument driver that does what I want for my two LIDARs. Now, I&#39;ll be asking someone to go back in and make the edits the &quot;right way&quot;, now that we know more about what the &quot;right way&#39; is. We&#39;ll then feed this update back onto the Instrument Driver Network for others to download and use.&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2008/12/labview-api-design-quick-case-study.html</link><author>noreply@blogger.com (Brian Powell)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikRcWT0543cIp9RjufmxVSwXkV05TTHTKu0vhe9LuPLeJodHpy_qc7FlbE-w0X26Xq_2lmTkFDLs6XEOybaMJFq_HyzRIz8XO4OkOIZpkeLbZve5B3s1bxXBI4IYsRxgdIPpoC7uHsC7E/s72-c/init-help.png" height="72" width="72"/><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-1460642753814366291</guid><pubDate>Wed, 26 Nov 2008 16:52:00 +0000</pubDate><atom:updated>2008-11-26T11:27:36.911-06:00</atom:updated><title>A Quick Update</title><description>I&#39;ll be traveling to Albuquerque and Denver next week for the NI Tech Symposia. If you live in New Mexico or Colorado, I hope to see you. (Dec. 2 for Albuquerque, Dec. 4 for Denver.) For more info... &lt;a href=&quot;http://www.ni.com/seminars/&quot;&gt;http://www.ni.com/seminars/&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I&#39;ll be presenting &quot;What&#39;s New in LabVIEW 8.6&quot;, &quot;Software Engineering Best Practices for LabVIEW&quot;, and &quot;Using IEEE-1588, GPS, and IRIG-B for Multi-System Synchronization&quot;.&lt;br /&gt;&lt;br /&gt;This weekend before the Albuquerque NI Tech Symposium, I&#39;ll be making my annual trip to the &lt;a href=&quot;http://www.fws.gov/southwest/refuges/newmex/bosque/&quot;&gt;Bosque del Apache National Wildlife Refuge&lt;/a&gt; for some &lt;a href=&quot;http://www.bhpowell.com/galleries/Bosque/&quot;&gt;bird photography&lt;/a&gt;. Let me know if any of you are hanging out there.&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;A quick update on our employee giving campaign. (I got a lot of positive feedback on &lt;a href=&quot;http://openmeas.blogspot.com/2008/10/giving-back-to-our-communities.html&quot;&gt;that post&lt;/a&gt;, by the way.) In these tough economic times, we managed to increase the total dollars pledged, as well as the number of donors. I am proud that NI employees recognize that non-profits need us now more than ever, and that we were able to step up and help meet those needs. I know of only one other Austin high-tech company that grew their campaign dollars this year.&lt;br /&gt;&lt;br /&gt;For me personally, it was an emotionally rewarding experience. I&#39;m glad the &quot;Why me?&quot; of heading the campaign turned into a &quot;Yes&quot;.&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;I&#39;ve got some more blog posts in my head, and I&#39;ll be trying to find the time to get them out.</description><link>http://openmeas.blogspot.com/2008/11/quick-update.html</link><author>noreply@blogger.com (Brian Powell)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-6632925642286770081</guid><pubDate>Mon, 06 Oct 2008 14:00:00 +0000</pubDate><atom:updated>2008-11-04T16:47:01.722-06:00</atom:updated><title>Giving Back To Our Communities</title><description>On Friday night, I went to the opening night performance of a local non-profit choral group, &lt;a href=&quot;http://conspirare.org/&quot;&gt;Conspirare&lt;/a&gt;.  They are an amazing, world-class group, and they put on a wonderful show that will soon be recorded by PBS.  I even recognized in the audience Dr. Anton Armstrong, conductor of the renowned &lt;a href=&quot;http://www.stolaf.edu/music/stolaf_choir/&quot;&gt;St. Olaf Choir&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Sitting in the audience, watching and listening to Conspirare, I could not help but think that this is an organization worth supporting.  How fortunate we are to have them in Austin.&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;Today marks the beginning of our three-week employee fall giving campaign, of which I am the chair.&lt;br /&gt;&lt;br /&gt;A few weeks ago, I received a mysterious meeting invitation in my inbox...  &quot;Quick chat with community relations&quot;.  I had been warned that I was on the list of candidates to chair this year&#39;s campaign, so I knew what the meeting was going to be about.  This gave me time to think about it.&lt;br /&gt;&lt;br /&gt;At first, it was a &quot;why me?&quot; kind of experience.  What was I signing up for?  It&#39;s overwhelming and intimidating&amp;mdash;we&#39;ve got thousands of employees in the US, and  I would be the voice of the campaign.&lt;br /&gt;&lt;br /&gt;We&#39;ve got a pretty good track record of employee giving.  High standards, yet the economy is tough this year.&lt;br /&gt;&lt;br /&gt;Sigh.  I&#39;m not sure I&#39;m the guy for the job.  It would be so easy to say no; to push this off on someone else.&lt;br /&gt;&lt;br /&gt;But I don&#39;t.  I won&#39;t.&lt;br /&gt;&lt;br /&gt;I care about the community in which I live.  I care about NI, and feel privileged to work here.  I care about the arts.  I care about education.  I care about animals and the environment.  I care about social needs, health needs, literacy needs.&lt;br /&gt;&lt;br /&gt;With the consummate support of the &lt;a href=&quot;http://www.ni.com/company/citizenship.htm&quot;&gt;National Instruments Community Relations team&lt;/a&gt;, especially Yvette Ruiz and Amanda Webster, here I am.&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;hr /&gt;&lt;br /&gt;We hire a lot of our employees right out of school.  This is great; keeps us young.  It also means that some of our employees may not yet feel strong connections to their communities.  And this is one of my challenges.&lt;br /&gt;&lt;br /&gt;I asked for a field trip.  I asked our community relations people if we could organize a field trip for our campaign volunteers.&lt;br /&gt;&lt;br /&gt;I wanted our volunteers to see a need firsthand.  We have dozens of volunteers, without whom we couldn&#39;t run this giving campaign.  They go to every group meeting and explain the reasons for the campaign, the goals, and the mechanics.&lt;br /&gt;&lt;br /&gt;I wanted our volunteers to see where the money goes, and what it buys, and to be able to talk about it to our employees.&lt;br /&gt;&lt;br /&gt;We went to &lt;a href=&quot;http://www.safeplace.org/&quot;&gt;SafePlace&lt;/a&gt;, which fights domestic violence and sexual abuse.&lt;br /&gt;&lt;br /&gt;A few days later, a different group of NI employees went to &lt;a href=&quot;http://www.childrensaustin.org/&quot;&gt;Dell Children&#39;s Medical Center of Central Texas&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;And in the past few weeks, I&#39;ve been to events for &lt;a href=&quot;http://www.cisaustin.org/&quot;&gt;Communities in Schools&lt;/a&gt;, and the &lt;a href=&quot;http://austinlyricopera.org/&quot;&gt;Austin Lyric Opera&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;We&#39;ve got thousands of non-profits in central Texas, thousands more nationwide, and our employees can choose to whom they donate.  I want all of our employees to know that they can make a difference in their communities.&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;Another theme I want to stress is that &lt;em&gt;any amount helps&lt;/em&gt;.&lt;br /&gt;&lt;br /&gt;I am truly proud that NI has the largest number of employees who are able to donate $1000 or more to be a part of the &lt;a href=&quot;http://www.unitedwaycapitalarea.org/leadership_giving/young_leaders_society/&quot;&gt;United Way Capitol Area Young Leaders Society&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;But many of our employees aren&#39;t in a position to donate that much.  I want them to know that they can still make a difference, even with a small donation.&lt;br /&gt;&lt;br /&gt;Among other things going on in my life right now, I&#39;m raising money for cancer research and survivorship through the Lance Armstrong Foundation.  I&#39;ll be doing the Livestrong Challenge bike ride at the end of October.  (Plug:  Support my ride here... &lt;a href=&quot;http://austin08.livestrong.org/bhpowell&quot;&gt;austin08.livestrong.org/bhpowell&lt;/a&gt;.)  One of my friends came up to me the other day and handed me a dollar bill in support of my ride.  It&#39;s all he had to give.  He promised another dollar in a week.  That meant so much to me, as it also reminded me of a parable that I am sure many of you know.&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;My challenge to all of you readers, wherever you are, whoever you are, is to go out and make a difference in your community.  Find your passion.  Give your time.  Give your money.  Find someone who needs your support, and support them.&lt;br /&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2008/10/giving-back-to-our-communities.html</link><author>noreply@blogger.com (Brian Powell)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-1768485579038370975</guid><pubDate>Thu, 02 Oct 2008 17:30:00 +0000</pubDate><atom:updated>2009-05-04T16:41:39.006-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Agilent</category><category domain="http://www.blogger.com/atom/ns#">AutoTestCon</category><category domain="http://www.blogger.com/atom/ns#">Instrument Driver</category><category domain="http://www.blogger.com/atom/ns#">IVI</category><category domain="http://www.blogger.com/atom/ns#">IVI-C</category><category domain="http://www.blogger.com/atom/ns#">IVI-COM</category><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><category domain="http://www.blogger.com/atom/ns#">LXI</category><category domain="http://www.blogger.com/atom/ns#">Mathworks</category><category domain="http://www.blogger.com/atom/ns#">Matlab</category><category domain="http://www.blogger.com/atom/ns#">Playskool</category><category domain="http://www.blogger.com/atom/ns#">Rohde Schwarz</category><title>AutoTestCon 2008</title><description>As I mentioned in an earlier post, I was at AutoTestCon in Salt Lake City a few weeks ago. This was my first visit to this MIL/AERO conference and tradeshow.&lt;br /&gt;&lt;br /&gt;I was greeted to the Salt Palace Convention Center by banners with images of fighter jets and bombers over Monument Valley and Delicate Arch.&lt;br /&gt;&lt;br /&gt;I was there to give a presentation on IVI, be part of a panel discussion on LXI, and to support a demo for the LXI Consortium...&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;Here&#39;s a photo of the demo I built for the consortium, using a Rohde &amp;amp; Schwarz FSL Spectrum Analyzer, a Keithley 2910 RF Signal Generator, two Agilent E5818A Trigger Boxes, an NI 8353 quad-core 1U PXI Controller, and NI LabVIEW 8.6.&lt;br /&gt;&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5252576630640227938&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: pointer; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCwpfzjMlq0Ck2VRvACINI6CCwP1IpC_BPX5OsXAOGtpGs4vcCwK9yykm2fywt5uYSfTr_weQq3zjWjT_7d2j3a5XFBb9wFwcQMmoBxZXd-gRwLcbVgApaR3ok-0i0y8M519ol5UG_IpE/s400/20080909_0007.jpg&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;br /&gt;The other demo in the booth consisted of Matlab and image processing software from The Mathworks, Agilent E5818A Trigger Boxes, and 1394 cameras from Point Grey Research. Colloquially called &quot;the bouncing ball demo&quot;, it used a military grade &lt;a href=&quot;http://www.hasbro.com/playskool/default.cfm?page=browse&amp;amp;product_id=13031&quot;&gt;Playskool Busy Basics Busy Popper&lt;/a&gt; for projectile measurements.&lt;br /&gt;&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5252576623900912386&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: pointer; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVsH6aJTnFP9gCOMjeMK2zqP133G3YqTiIXDPfn218pe6kdQjxZYRr92dijd_-ZAKuyy_jteZKrpG3WP_252zghjiffjwi_Da2dqmjbRyr3RN19MVUu0yeejmzQTLJTaoL4UbDgFNIX10/s400/20080909_0002.jpg&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;br /&gt;Okay, the part about &quot;military grade&quot; was a joke. The demo was there to make noise and entice people into the booth. Shown in the photo are Conrad Proft, from Agilent, and Rob Purser, from The Mathworks.&lt;br /&gt;&lt;br /&gt;Both demos showed LXI features such as IEEE 1588 timing and distributing triggers across a network.&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;On Monday, I gave a presentation about IVI instrument driver technology at one of the seminars. This was just a basic introduction into what IVI drivers are, and an update on the status of current work in the IVI Foundation.&lt;br /&gt;&lt;br /&gt;The tone was set for this presentation a few seconds into my talk. One attendee raised his hand and said, &quot;IVI drivers don&#39;t work.&quot;&lt;br /&gt;&lt;br /&gt;&quot;I see it&#39;s going to be a tough crowd&quot;, I replied.&lt;br /&gt;&lt;br /&gt;In this particular case, the user had obtained several IVI-COM drivers from his instrument vendor, and all but one failed to communicate correctly with his instruments. He had also received an IVI-C driver for an instrument from a different vendor, and he was unable to make it work until he got National Instruments involved to fix it for him.&lt;br /&gt;&lt;br /&gt;This is a good point for me to point out that you don&#39;t have to depend on your instrument vendor for your instrument drivers. The National Instruments &lt;a href=&quot;http://ni.com/idnet&quot;&gt;Instrument Driver Network&lt;/a&gt; (IDNet) contains instrument drivers for thousands of instruments from hundreds of different vendors, including IVI drivers, LabVIEW Plug and Play drivers, and VXIplug&amp;amp;play drivers.&lt;br /&gt;&lt;br /&gt;Many of the drivers on IDNet are marked as &quot;NI Certified&quot;, which means...&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Certified instrument drivers comply with instrument driver standards including programming style, error handling, documentation, and functional testing. Certified drivers ensure consistency among instrument drivers and, therefore, improve ease of use. They also provide source code so that you can modify, customize, optimize, debug, and add functionality to the instrument driver. All National Instruments certified instrument drivers receive NI support.&lt;/blockquote&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;I was also on a panel discussion about LXI. We presented to about fifteen people.&lt;br /&gt;&lt;br /&gt;A week later, we recorded a webcast for &lt;a href=&quot;http://www.tmworld.com/&quot;&gt;T&amp;amp;M World Magazine&lt;/a&gt; with the same material. You can view a replay of the webcast by registering on the T&amp;amp;M World website.&lt;br /&gt;&lt;br /&gt;We had time for questions and answers during both versions of the presentation. Additional questions from the webcast will eventually be posted with answers on the LXI website.&lt;br /&gt;&lt;br /&gt;Interestingly, most of the questions at AutoTestCon related to GPIB. Conrad Proft, from Agilent, had slides that showed examples where LXI works better than GPIB (over long distances) and RS-485 (cabling).&lt;br /&gt;&lt;br /&gt;One question was whether companies are going to continue to support GPIB. Conrad from Agilent voiced his company&#39;s continued commitment to GPIB. I added that I believe that many people are still building GPIB-based test systems, and that NI will continue to support our GPIB users. (Later that week, NI announced our new PCI Express GPIB controllers that support a nearly 8 megabyte/second transfer rate, are RoHS compliant, and use only 1.1W of power.)&lt;br /&gt;&lt;br /&gt;Another audience member, perhaps a little caught up in the excitement of LAN-based instrumentation, asked, &quot;Why would anyone still use GPIB? It&#39;s slow. The cables are so inflexible.&quot;&lt;br /&gt;&lt;br /&gt;My jaw dropped at this. I bet if you polled all the AutoTestCon attendees, just about every one of them is using GPIB, and is going to continue to use GPIB. So my answer began with, &quot;Because it just works!&quot;.&lt;br /&gt;&lt;br /&gt;&quot;The GPIB cables are shielded and have rugged connectors that screw in and don&#39;t have plastic tabs that break off.&quot;&lt;br /&gt;&lt;br /&gt;[Bringing it back to LXI] &quot;...the message of the LXI Consortium is that it&#39;s important to ensure that LXI works well with other buses.&quot;&lt;br /&gt;&lt;br /&gt;The reality is that our users are going to develop &quot;hybrid&quot; systems, using a mix of bus technologies. Every bus has pros and cons. GPIB has low communications latency and is rugged. LXI has cheaper cabling and works well over extraordinarily long distances. PXI and PXI Express have high communications bandwidth and low latency.&lt;br /&gt;&lt;br /&gt;And that&#39;s why it&#39;s my job at National Instruments to help ensure that &lt;span style=&quot;FONT-STYLE: italic&quot;&gt;all&lt;/span&gt; forms of I/O work well in LabVIEW.&lt;br /&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2008/10/autotestcon-2008.html</link><author>noreply@blogger.com (Brian Powell)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCwpfzjMlq0Ck2VRvACINI6CCwP1IpC_BPX5OsXAOGtpGs4vcCwK9yykm2fywt5uYSfTr_weQq3zjWjT_7d2j3a5XFBb9wFwcQMmoBxZXd-gRwLcbVgApaR3ok-0i0y8M519ol5UG_IpE/s72-c/20080909_0007.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-3496725259152465085</guid><pubDate>Tue, 02 Sep 2008 14:22:00 +0000</pubDate><atom:updated>2009-05-04T16:42:10.617-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">AutoTestCon</category><category domain="http://www.blogger.com/atom/ns#">IEEE</category><category domain="http://www.blogger.com/atom/ns#">IVI</category><category domain="http://www.blogger.com/atom/ns#">IVI-C</category><category domain="http://www.blogger.com/atom/ns#">IVI-COM</category><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><category domain="http://www.blogger.com/atom/ns#">LXI</category><category domain="http://www.blogger.com/atom/ns#">PXI</category><title>AutoTestCon 2008 in Salt Lake City</title><description>I&#39;ll be in Salt Lake City next week, September 8-10, for AutoTestCon.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.autotestcon.com/index.php&quot;&gt;AutoTestCon&lt;/a&gt; is a large Mil/Aero conference and trade show sponsored by the IEEE.&lt;br /&gt;&lt;br /&gt;I&#39;ll be doing a couple of presentations...&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;On Monday, I&#39;m presenting as part of a seminar entitled, &quot;VXI, PXI, IVI &amp;amp; LXI Standards Improve ATE Systems Design&quot;. I will be presenting the part about IVI. I&#39;ll cover what IVI is, the current state of IVI, future work, as well as technical informationi on configuration, the differences between IVI-C and IVI-COM, and how to use class and specific drivers together.&lt;br /&gt;&lt;br /&gt;On Wednesday, I will be part of a panel discussion on &quot;Test Applications Using LXI Instruments&quot;. Hosted by Test &amp;amp; Measurement World chief editor Rick Nelson, the panel plans to share some of what we&#39;ve learned over the past three years creating multi-vendor LXI-based test systems.&lt;br /&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2008/09/autotestcon-2008-in-salt-lake-city.html</link><author>noreply@blogger.com (Brian Powell)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-6734230615389001638</guid><pubDate>Mon, 04 Aug 2008 19:28:00 +0000</pubDate><atom:updated>2009-05-04T16:42:30.897-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><category domain="http://www.blogger.com/atom/ns#">LAVA</category><category domain="http://www.blogger.com/atom/ns#">LXI</category><category domain="http://www.blogger.com/atom/ns#">NIWeek</category><title>NIWeek 2008</title><description>It&#39;s Monday of NIWeek 2008, so it&#39;s a tradition for the Austin American-Statesman (the local newspaper) to have a nice article about NI. Today&#39;s was about &lt;a href=&quot;http://www.statesman.com/business/content/business/stories/technology/08/04/0804nati.html&quot;&gt;Green Engineering&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Today is Alliance Day, and the full-blown conference starts tomorrow.&lt;br /&gt;&lt;br /&gt;I&#39;ll be presenting again this year, on Thursday...&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;My topic is about using NI hardware and software products to work with LXI-based test systems.&lt;br /&gt;&lt;br /&gt;I&#39;ll be around the convention center all week, including the LAVA dinner Tuesday night, and the conference party on Wednesday. Feel free to find me and say hi.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2008/08/niweek-2008.html</link><author>noreply@blogger.com (Brian Powell)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-4826729001188237574</guid><pubDate>Tue, 24 Jun 2008 21:00:00 +0000</pubDate><atom:updated>2020-03-06T21:20:03.469-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">IVI</category><category domain="http://www.blogger.com/atom/ns#">IVI-C</category><category domain="http://www.blogger.com/atom/ns#">IVI-COM</category><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><category domain="http://www.blogger.com/atom/ns#">LAN</category><category domain="http://www.blogger.com/atom/ns#">LXI</category><title>Thoughts on Network Protocols for Instrumentation</title><description>Among my other responsibilities, I still hang out with the LXI crowd. Lots of conference calls, and a quarterly face-to-face meeting. (Thank you, &lt;a href=&quot;http://www.testforce.com/&quot;&gt;TestForce&lt;/a&gt;, for hosting our recent meeting in Toronto.)&lt;br /&gt;
&lt;br /&gt;
Following up on my &lt;a href=&quot;http://openmeas.blogspot.com/2006/09/what-is-lxi.html&quot;&gt;earlier blog post&lt;/a&gt;, National Instruments did join the LXI Consortium at some point (last year, I think). I believe that having one network-instrumentation standard to follow is better than having many, and the technical side of the consortium is constantly working to devise solutions to limitations inherent in a network-based test system.&lt;br /&gt;
&lt;br /&gt;
There are a variety of challenges revolving around the fact that LAN opens up the door to having more than one &quot;controller&quot; in a test system.&lt;br /&gt;
&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;In a test system using RS-232 or USB, for example, any single device talks to only a single &quot;controller&quot;—typically the test system&#39;s PC. A GPIB system is a form of network, but there&#39;s always one &quot;controller in charge&quot;. Nobody can easily intrude into the test system.&lt;br /&gt;&lt;br /&gt;Is this a &quot;feature&quot;, or a &quot;limitation&quot;? It all depends on the test system. What if you wanted to see test data from the outside world? Today, you&#39;d probably put a network connection on your test PC, and let it serve up data through the LabVIEW Web Server, or store data into a corporate database. Nobody could talk to the instruments directly; they would always go through the PC.&lt;br /&gt;&lt;br /&gt;But an alternative that LXI allows is to connect your private test network to the rest of your company&#39;s intranet (or the entire internet, if you want). This allows others to interact directly with the measurement instruments. You probably wouldn&#39;t want this feature in all test systems, but it opens the door to some interesting possibilities.&lt;br /&gt;&lt;br /&gt;Even if you don&#39;t connect your test network to the internet, you might still want to have more than one test PC talking to the devices. Or one grand vision of the consortium is that instruments can control other instruments. How does an instrument manage multiple connections from multiple controllers at once? Does this sound complicated? It is.&lt;br /&gt;&lt;br /&gt;And this is where the LXI Consortium comes in. What can the consortium do to make it &quot;safe&quot; to have more than one controller on your network?&lt;br /&gt;&lt;br /&gt;There are many aspects of this that the consortium is working on—defining behavior when there are too many connections for an instrument to handle, for example. One particularly challenging problem is how to &quot;reserve&quot; or &quot;lock&quot; an instrument in your test program so that nobody else comes in and changes settings in the middle of your test.&lt;br /&gt;&lt;br /&gt;It&#39;s worse than that, really. Just discovering instruments on your network can have the accidental side effect of interrupting a test program. And it&#39;s especially this kind of inadvertent access to a test instrument that the consortium is trying to resolve.&lt;br /&gt;&lt;br /&gt;One step in this direction was announced in the &lt;a href=&quot;https://www.lxistandard.org/Specifications/OlderSpecifications.aspx&quot; target=&quot;_blank&quot;&gt;LXI 1.2 standard&lt;/a&gt;. There will be a new mechanism for discovering LXI devices that is less obtrusive than the current approach. In the future, when instruments are available that support the next version of the LXI standard, this very common form of inadvertant access should be solved for future test systems.&lt;br /&gt;&lt;br /&gt;But there are still challenges with test systems with more than one computer or instrument trying to talk to a single device at the same time. For that, we really need to be able to reserve the instrument for exclusive use by a single test program (or perhaps even a single part of a larger test program).&lt;br /&gt;&lt;br /&gt;This problem has been solved before in this domain. In 2004, I helped write an article for T&amp;amp;M World entitled &lt;a href=&quot;https://web.archive.org/web/20080706170156/http://www.tmworld.com/article/CA457475.html&quot; target=&quot;_blank&quot;&gt;Migrating to Ethernet&lt;/a&gt;. I discussed the VXI-11 protocol for communicating with instrumentation over Ethernet.&lt;br /&gt;&lt;br /&gt;Because VXI-11 defines processing on both the host (PC) and client (instrument), it is able to provide a way to reserve or lock the instrument in a test program. With VXI-11 devices, the VISA commands viLock and viUnlock can be used to lock the instrument so that it only responds to the program that has the lock.&lt;br /&gt;&lt;br /&gt;However, VXI-11 has kind of fallen out of favor with instrument vendors. One reason is that it requires a fair amount of processing horsepower inside the instrument. VXI-11 is based on a technology called RPC, or Remote Procedure Calls. With RPC, much of the processing happens on the instrument, requiring more processing power, more memory, and thus, higher overall cost.&lt;br /&gt;&lt;br /&gt;Instrument vendors want to move to simpler protocols. The consortium therefore needs to take a fresh look at instrument locking, and hopefully come up with a proposed solution in the 2009 or 2010 versions of the LXI standard.&lt;br /&gt;&lt;br /&gt;Until then, fortunately, most LXI instruments continue to support VXI-11 and you can use viLock or viUnlock (in LabVIEW, they are called &quot;VISA Lock Async&quot; and &quot;VISA Unlock&quot;) to lock instruments in your test system.&lt;br /&gt;&lt;br /&gt;One caveat is that IVI drivers do not support the same kind of locking. You need to have access to the VISA session to properly lock the device. This is one of the benefits of using a LabVIEW Plug and Play (or for C users, VXIpnp) driver. Since these kinds of drivers use the VISA session directly, you can easily add VISA Lock and VISA Unlock calls to your program without major rework.&lt;br /&gt;&lt;br /&gt;Stay tuned as the standards evolve.&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2008/06/thoughts-on-network-protocols-for.html</link><author>noreply@blogger.com (Brian Powell)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-1809044529512477668</guid><pubDate>Mon, 05 May 2008 15:46:00 +0000</pubDate><atom:updated>2009-05-04T16:43:41.590-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><title>64-bit LabVIEW</title><description>&lt;p&gt;Last week, we &lt;a href=&quot;http://forums.ni.com/ni/board/message?board.id=170&amp;amp;thread.id=319502&quot;&gt;announced the 64-bit LabVIEW beta&lt;/a&gt;. That announcement reveals a little about how I&#39;ve spent the last couple of years of my life.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;A long, long time ago, when I first started at NI, we were pretty proud of the fact that LabVIEW started its life as a 32-bit Macintosh application. We didn&#39;t suffer the pains of some applications that were having to live in (and later convert from) the 16-bit DOS and Windows environments.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;But in some parts of the source code, we weren&#39;t as rigorous with our data types as we should have been. I asked the guy next to me, &quot;Hey, Steve. Should I be worried about all these places we assume pointers fit into 32 bits?&quot;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&quot;No,&quot; he responded, &quot;we do that all over the place. Somebody far in the future will have to go through all of LabVIEW and fix that.&quot;&lt;/p&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;p&gt;I did not know then that the &quot;somebody&quot; would be me.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;As I alluded to in my &lt;a href=&quot;http://openmeas.blogspot.com/2008/02/twenty-years.html&quot;&gt;Twenty Years&lt;/a&gt; post, when I first started working on this, it seemed like an insurmountable task. LabVIEW source code is big, with a lot of developers having their hands in the code over time. And it&#39;s part GUI, part compiler, part runtime engine, and part kitchen sink.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Fortunately, I soon got help—a small, but really good team—and we just started plugging away at it. The little milestones along the way...&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Compile the source code without errors&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Compile, link, and crash on launch&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Launch to Untitled 1&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Launch to the Getting Started window&lt;/li&gt;&lt;br /&gt;&lt;li&gt;etc.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;p&gt;There was a snowball effect—we&#39;d fix something, and then a whole bunch of stuff would start working.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;I wouldn&#39;t say it&#39;s been easy. When we first started, I had a fair amount of skepticism... I had fears that we would hit a brick wall, or we&#39;d discover something that would require more effort than we were willing to invest. That skepticism was justified. We had to make some tradeoffs to keep the project from getting out of hand.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;From a software engineering perspective, I think we did a good job of containing the risk to 32-bit LabVIEW while pushing forward with 64-bit LabVIEW. (All the code is shared.) Perhaps more on that later.&lt;/p&gt;&lt;p&gt;I&#39;m pretty happy with our level of quality in this beta release. If you&#39;ve got access to a 64-bit Windows machine, I encourage you to sign up for the beta and give it a try. Here&#39;s a teaser for the kinds of things you&#39;ll be able to do. (Click to enlarge the image.)&lt;/p&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHjly9gk0EMosKXgnNhtq9olx4OR_9iWOvdVks34usFnt3RCj2lmoeKOZWrVUKDh1Knxza8JI7c6542Q-mrN-fSvSOKglZLMB5P8tTJklZI6CFUNfhjVkHVp_fKMqQu6oO4MjdLjwtoyk/s1600-h/profile.png&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5196960129844992066&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHjly9gk0EMosKXgnNhtq9olx4OR_9iWOvdVks34usFnt3RCj2lmoeKOZWrVUKDh1Knxza8JI7c6542Q-mrN-fSvSOKglZLMB5P8tTJklZI6CFUNfhjVkHVp_fKMqQu6oO4MjdLjwtoyk/s320/profile.png&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2008/05/64-bit-labview.html</link><author>noreply@blogger.com (Brian Powell)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHjly9gk0EMosKXgnNhtq9olx4OR_9iWOvdVks34usFnt3RCj2lmoeKOZWrVUKDh1Knxza8JI7c6542Q-mrN-fSvSOKglZLMB5P8tTJklZI6CFUNfhjVkHVp_fKMqQu6oO4MjdLjwtoyk/s72-c/profile.png" height="72" width="72"/><thr:total>9</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-4259949358048345276</guid><pubDate>Thu, 21 Feb 2008 15:36:00 +0000</pubDate><atom:updated>2009-05-04T16:44:19.743-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><title>Twenty Years</title><description>&lt;p&gt;Last month, I celebrated twenty years at National Instruments.&lt;/p&gt;&lt;p&gt;One of the first things I learned about software development at NI is that food plays a prominent role. Back in the early days, it was mostly Double-Stuf Oreos®.&lt;/p&gt;&lt;p&gt;Hardly a day goes by without someone sending out a food announcement email—bagels, doughnuts, leftover party food. There&#39;s almost always a reason for the food: an anniversary, or &quot;Thanks to Kevin for helping me figure out this problem&quot;, or &quot;I broke the build&quot;.&lt;/p&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;p&gt;During one test day, someone wrote a LabVIEW application that sits in the system tray (multi-platform, of course) and pops up to let you know that someone has brought in food. It also showed you the shortest path from your desk to the food. Who says testing isn&#39;t fun?&lt;/p&gt;&lt;p&gt;For my fifteen year anniversary, I bought fifteen dozen Krispy Kreme® doughnuts and scattered them around several floors of the building I&#39;m in. It&#39;s frighteningly easy to buy 15 dozen doughnuts. They didn&#39;t bat an eye. They did offer to help carry them to my car.&lt;/p&gt;&lt;p&gt;For twenty years, I made a couple of desserts, both from the &lt;a href=&quot;http://www.hotellimpia.com/&quot;&gt;Hotel Limpia &lt;/a&gt;(Fort Davis, Texas) cookbook. I made the most decadent chocolate brownies ever—containing about 20 pounds of chocolate and sugar. And in a feeble attempt to provide enough for everybody on the team, I made dozens and dozens of oatmeal raisin cookies.&lt;/p&gt;&lt;p&gt;But enough about food. That&#39;s not what keeps me coming back to this place every day.&lt;/p&gt;&lt;p&gt;Let&#39;s tie this all back to software engineering.&lt;/p&gt;&lt;p&gt;While software engineering is mostly about the process of developing software, one aspect of it has to cover how you get people to come into the office every day and do the work. Food is nice. Pay is important. But it&#39;s the cool projects that keep me coming back.&lt;/p&gt;&lt;p&gt;I&#39;m working on a long-term project that I sooo want to be able to talk about. (Soon, soon.) I&#39;ve been working on this project for a couple of years, and I still come in to work each day eager to work on it. What seemed like an insurmountable problem when I started is now within reach, thanks to a small and really good team we&#39;ve put together.&lt;/p&gt;&lt;h3&gt;A Sense of Urgency&lt;/h3&gt;&lt;p&gt;There&#39;s a lot to be proud of as I look back over twenty years, but I come to work every day thinking about what&#39;s next. And maybe that&#39;s something to be proudest of—I helped build a software development process that is still one I want to be part of after twenty years.&lt;/p&gt;&lt;p&gt;I come to work every day with a sense of urgency. I think all good software teams do. It&#39;s not a sense of panic. Okay, maybe it occasionally approaches panic, but mostly it&#39;s under control. It&#39;s more wanting to relentlessly make progress, every day. A little bit more works every day, and soon we&#39;ve worked past major obstacles. Celebrate briefly. And we keep going, because we&#39;re not done yet.&lt;/p&gt;&lt;p&gt;It&#39;s a whole lot like twenty years ago on the LabVIEW team. And that&#39;s a very good thing.&lt;/p&gt;&lt;p&gt;And my project is one of many. There are many other small teams here working on exciting things, with their own sense of urgency.&lt;/p&gt;&lt;p&gt;So I think it&#39;s pretty cool that after twenty years at the same job, I&#39;m still having fun. We haven&#39;t run out of things to do. We haven&#39;t run out of ideas. We aren&#39;t &quot;done&quot; yet.&lt;/p&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2008/02/twenty-years.html</link><author>noreply@blogger.com (Brian Powell)</author><thr:total>8</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-7673558401721255817</guid><pubDate>Wed, 05 Dec 2007 15:08:00 +0000</pubDate><atom:updated>2009-05-04T16:35:02.217-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">I/O</category><category domain="http://www.blogger.com/atom/ns#">Instrument Driver</category><category domain="http://www.blogger.com/atom/ns#">IVI-C</category><category domain="http://www.blogger.com/atom/ns#">IVI-COM</category><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><category domain="http://www.blogger.com/atom/ns#">Linux</category><title>Linux and LXI Instrument Control</title><description>&lt;p&gt;A long time ago, I learned a lot about UNIX — first, as a programmer at a well-run BSD shop, and later after joining NI, by becoming NI&#39;s system administrator for our lone Sun 3/160 workstation. (That was in addition to my &lt;em&gt;real&lt;/em&gt; job of being a LabVIEW programmer.)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;I&#39;ve also been heavily involved in the UNIX/Linux flavors of LabVIEW... initially LabVIEW for Sun, and later, LabVIEW for HP-UX, LabVIEW for Concurrent PowerMAX, and LabVIEW for Linux.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;So with great interest, I&#39;ve noticed several new Application Notes from Agilent about Linux, the most recent of which is &lt;a href=&quot;http://cp.literature.agilent.com/litweb/pdf/5989-6717EN.pdf&quot;&gt;Using Linux to Control LXI Instruments Through TCP&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;While these app notes provide some useful information, they typically show you how to do things the hard way. With NI software, things are much easier...&lt;/p&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;p&gt;For example, in the above-mentioned application note, you get to learn about socket calls, network byte ordering, and Nagle&#39;s algorithm for packet consolidation. In another application note, &lt;a href=&quot;http://cp.literature.agilent.com/litweb/pdf/5989-6716EN.pdf&quot;&gt;Using Linux to Control LXI Instruments Through VXI-11&lt;/a&gt;, you get to learn how to program remote procedure calls and the XDR format for data representation.&lt;/p&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;h3&gt;NI and Linux&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;One of the benefits of National Instruments&#39; software is that we actually have Linux versions of LabVIEW, the LabWindows/CVI Run-Time Module, our I/O Libraries such as NI-VISA and NI-488.2, and some of our other device drivers such as NI-DAQmx.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;So instead of having to learn how to write your own I/O libraries, and how to use the GNU Compiler Collection and debugging tools, you can work at a much higher level in a graphical system design language.&lt;/p&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;h3&gt;Instrument Drivers&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;LabVIEW is a portable language, which means that the functions (VIs) that you write can be moved from one flavor of LabVIEW (e.g., LabVIEW for Windows) to another (e.g., LabVIEW for Linux, or Macintosh, or Real-Time) and function correctly. There are a few caveats to this... Not all real-time targets have hard disks, so the File I/O functions don&#39;t work there. Another example: VIs that use OS-dependent technology, such as IVI-COM drivers that depend on Microsoft&#39;s ActiveX technology, are not portable.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;So what to do about instrument drivers? Agilent, in their application note &lt;a href=&quot;http://cp.literature.agilent.com/litweb/pdf/5989-6715EN.pdf&quot;&gt;Using Linux in Your Test Systems: Linux Basics&lt;/a&gt; suggests &quot;in most situations you do not need an instrument driver.&quot; While true, it sidesteps the issue that instrument drivers are really valuable, since someone else has developed and debugged the code that deals with the nuances of specific instrument models.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Fortunately, the &lt;a href=&quot;http://ni.com/idnet/&quot;&gt;National Instruments Instrument Driver Network&lt;/a&gt; contains thousands of LabVIEW Plug and Play instrument drivers. These instrument drivers will work on Windows, Linux, MacOS X, and LabVIEW Real-time — anywhere you have both LabVIEW and VISA.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;What about IVI? All IVI drivers are Windows only, but there&#39;s a way to get IVI-C drivers working on Linux. They&#39;re no longer officially &quot;IVI&quot;, but it can be done. NI has an article entitled &lt;a href=&quot;http://zone.ni.com/devzone/cda/tut/p/id/3809&quot;&gt;Porting IVI-C Specific Drivers and Applications to Linux&lt;/a&gt; that describes the steps.&lt;/p&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;p&gt;So to summarize, if you like doing things the hard way, the Agilent application notes lay out a nice roadmap. The rest of you might want to consider NI&#39;s Linux products. To learn more, see &lt;a href=&quot;http://ni.com/linux&quot;&gt;ni.com/linux&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2007/12/linux-and-instrument-control.html</link><author>noreply@blogger.com (Brian Powell)</author><thr:total>6</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-3557527821253829823</guid><pubDate>Mon, 22 Oct 2007 17:32:00 +0000</pubDate><atom:updated>2009-05-04T16:44:53.403-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><category domain="http://www.blogger.com/atom/ns#">STEM</category><title>LabVIEW in Public Places</title><description>&lt;p&gt;I&#39;ve been traveling quite a bit lately. That&#39;s my excuse for falling behind on the blog.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Having spent nearly twenty years of my life at National Instruments, I&#39;ve gotten pretty good at detecting the presence of LabVIEW in the world around me. For example, during the Tour de France coverage on TV, there was a short segment on the &lt;a href=&quot;http://www.lswt.com/&quot;&gt;San Diego Air &amp;amp; Space Technology Low Speed Wind Tunnel&lt;/a&gt;. There was maybe one second of video showing software, and I call out, &quot;That&#39;s LabVIEW.&quot; Those buttons on the front panel are pretty recognizable.&lt;/p&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;p&gt;I recently visited (as a tourist) the &lt;a href=&quot;http://www.omsi.edu/&quot;&gt;Oregon Museum of Science and Industry&lt;/a&gt;, and found LabVIEW in the Vernier Technology Lab. It&#39;s used to show how electrical activity in the heart is measured.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;I also recently visited—again as a tourist, this time with colleagues from Agilent—the &lt;a href=&quot;http://www.deutsches-museum.de/&quot;&gt;Deutsches Museum&lt;/a&gt; in Munich. We went to the museum late in the afternoon one day, with only an hour before closing. This is a big museum, so we were racing through trying to see as much as we could. We ran across the &lt;a href=&quot;http://www.tumlab.de/&quot;&gt;TUMLab&lt;/a&gt;, an engineering education lab in the museum, associated with the &lt;a href=&quot;http://portal.mytum.de/welcome&quot;&gt;Technische Universität München&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The lab was closed, but through the glass window, I could see a Lego robot. This meant that LabVIEW was probably nearby. I don&#39;t think my colleagues from Agilent were quite as excited by this discovery as I was.&lt;/p&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;p&gt;I never get tired of seeing LabVIEW in the &quot;real world&quot;. I&#39;m proud to be part of the team that&#39;s made it possible. And I&#39;m especially proud we&#39;re helping educate the next generation of scientists and engineers.&lt;/p&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2007/10/labview-in-public-places.html</link><author>noreply@blogger.com (Brian Powell)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-461418504998131591</guid><pubDate>Fri, 07 Sep 2007 14:30:00 +0000</pubDate><atom:updated>2009-05-04T16:45:12.434-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><category domain="http://www.blogger.com/atom/ns#">NIWeek</category><category domain="http://www.blogger.com/atom/ns#">Software Engineering</category><title>NIWeek recap</title><description>&lt;p&gt;Michael Aivoliotis just published his &lt;a href=&quot;http://forums.lavag.org/blog/niweek2007/index.php?showentry=182&quot;&gt;video interview of me&lt;/a&gt;. That&#39;s prodded me into posting a quick NIWeek recap. Thanks, Michael!&lt;/p&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;p&gt;I got the attendance numbers for my sessions. A total of nearly 300 people attended my presentations. Wow! Thanks to everybody who came, and I hope the sessions were useful.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&quot;Software Engineering—The NI Way&quot; was very popular; we filled a large room. I&#39;m pleased that we had such great audience participation during this presentation.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The LXI presentation had the least amount of interest, but I think we had a good selection of attendees there. I showed unreleased products from both NI and Rohde &amp;amp; Schwarz. A big thank you to David Owen from Pickering Test, and Johannes Ganzert from Rohde &amp;amp; Schwarz, for loaning equipment for my demo. Afterwards, one attendee said that my presentation was &quot;better than the one Agilent gives&quot;. I haven&#39;t seen Agilent&#39;s LXI presentation, but that sounds like a good compliment.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Another highlight for me is that one of the stars of NIWeek came to my Instrument Control Bus Comparison presentation. If you didn&#39;t attend the Thursday NIWeek keynote, you should visit the &lt;a href=&quot;http://www.ni.com/niweek/keynote_videos.htm&quot;&gt;NIWeek Keynote Videos&lt;/a&gt; web page. Click on the Thursday tab, and watch the 8-minute video entitled, &quot;Future Scientists and Engineers - An Interview with Samuel Majors&quot;. I think you&#39;ll be inspired.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;I was honored to meet Samuel, but I was even more pleased that I was able to connect him with Jim Kring, the co-author of one of Samuel&#39;s favorite books, &lt;a href=&quot;http://www.amazon.com/LabVIEW-Everyone-Programming-Instruments-Instrumentation/dp/0131856723/ref=cm_taf_title_featured?ie=UTF8&quot;&gt;LabVIEW for Everyone&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;I also had a great time at the LAVA Barbecue at the Salt Lick. Somebody needs to tell Chris Relf that I already paid. ;-) My car (and Nancy Hollenback and I) made a cameo appearance near the end of &lt;a href=&quot;http://forums.lavag.org/blog/niweek2007/index.php?showentry=179&quot;&gt;another Michael A. video&lt;/a&gt;. We had a great time.&lt;/p&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2007/09/niweek-recap.html</link><author>noreply@blogger.com (Brian Powell)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-4591032085432015948</guid><pubDate>Wed, 01 Aug 2007 18:37:00 +0000</pubDate><atom:updated>2009-05-04T16:48:55.609-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">GPIB</category><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><category domain="http://www.blogger.com/atom/ns#">LXI</category><category domain="http://www.blogger.com/atom/ns#">NIWeek</category><category domain="http://www.blogger.com/atom/ns#">Software Engineering</category><title>My NIWeek 2007 Sessions</title><description>&lt;p&gt;I hope you are attending NIWeek, and that you are planning to attend at least one of my NIWeek presentations...&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Software Engineering - The NI Way&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Using LabVIEW in an LXI-Based Test System&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Head-to-Head High-Speed Bus Comparison: GPIB, PCI, PCI Express, USB, and Ethernet/LAN&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;p&gt;Read more below for details on each presentation...&lt;/p&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;h3&gt;Software Engineering - The NI Way&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;Wednesday, 3:30 PM, Room 12A&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Join me for an interactive discussion about how NI develops software. When I first joined NI nearly 20 years ago, our software development process was, shall I say, &quot;underdeveloped&quot;. Fortunately, we&#39;ve been improving ever since.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;I&#39;ll talk about how our process has evolved as our team and code have gotten bigger. I&#39;ll talk about and demo some of the tools we use.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;This topic is significantly more interesting with audience participation, so bring your own thoughts and stories about how you develop software.&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;Using LabVIEW in an LXI-Based Test System&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;Wednesday, 4:45 PM, Room 17A&lt;/p&gt;&lt;br /&gt;&lt;p&gt;LXI is a relatively new standard for LAN-based test and measurement instrumentation. As many of you know, I represent NI at LXI Consortium meetings. You may have read my earlier blog postings about &lt;a href=&quot;http://openmeas.blogspot.com/2006/09/what-is-lxi.html&quot;&gt;What is LXI?&lt;/a&gt; and &lt;a href=&quot;http://openmeas.blogspot.com/2006/10/lan-is-simple-right.html&quot;&gt;LAN is Simple, Right?&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;In this presentation, I&#39;ll show how you can use NI hardware and software to control an LXI-based system. I&#39;ve put together a system containing LXI devices from Rohde &amp;amp; Schwarz, Pickering Interfaces, and Agilent. (Thanks to the vendors who loaned me their equipment!)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;This NIWeek presentation is heavy on demos and light on slides. I&#39;ll show you everything from simple instrument communciations to advanced synchronization and timing.&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;Head-to-Head High-Speed Bus Comparison: GPIB, PCI, PCI Express, USB, and Ethernet/LAN&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;Wednesday, 10:30 AM, Room 17B&lt;br /&gt;&lt;br /&gt;Thursday, 2:15 PM, Room 13B&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The typical test system these days includes instrumentation with a variety of interfaces. You might have a mix of simple PXI devices, legacy GPIB instruments, and perhaps a LAN or USB device thrown in. This presentation will shed some light on the strengths and weaknesses of various buses, including performance, cost, and ease of use.&lt;/p&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2007/08/my-niweek-2007-sessions.html</link><author>noreply@blogger.com (Brian Powell)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-3538365582566986463</guid><pubDate>Mon, 30 Jul 2007 22:40:00 +0000</pubDate><atom:updated>2009-05-04T16:46:24.604-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Data</category><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><category domain="http://www.blogger.com/atom/ns#">Memory Management</category><title>Pop Quiz Answer</title><description>&lt;p&gt;Nobody answered my pop quiz!&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;em&gt;Pop Quiz:&lt;/em&gt; Default data on a front panel control is useful, for example, when the control is on the connector pane, but isn&#39;t wired in the caller&#39;s diagram. The subVI runs with the default value in that case. When is default data on an indicator useful?&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;Read more for the answer...&lt;/p&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;p&gt;We pass data out of subVIs through its indicators that are on the connector pane. But what if an indicator doesn&#39;t receive any data while the subVI runs? In that case, we use the indicator&#39;s default data and pass that out to the caller.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;A picture helps. Here are the two frames of a case structure...&lt;/p&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhozf45PFqc63NNK8VZ26NbPUoeqcAkUmmdhV846NCvm1XmbtrFrQWIb-xAoRu2FTdaTBqgYLPY5Q1_vF4pZSga0ZF_-aHsgbsRNyR9VVuOG7nm-D3nsvC6oa9UbPfe_fKy430xP-KTlXI/s1600-h/condind.png&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5091557102196415938&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhozf45PFqc63NNK8VZ26NbPUoeqcAkUmmdhV846NCvm1XmbtrFrQWIb-xAoRu2FTdaTBqgYLPY5Q1_vF4pZSga0ZF_-aHsgbsRNyR9VVuOG7nm-D3nsvC6oa9UbPfe_fKy430xP-KTlXI/s320/condind.png&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;This is an example of a conditional indicator. The indicator is only updated in one frame. If the VI never executes that frame, no data ever reaches the terminal for the indicator. When the indicator&#39;s data is passed out of the connector pane, the default data for the indicator is used in that case.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;So in the example above, I made the default data for &quot;My Conditional Indicator&quot; the value 456. I put the &quot;Case?&quot; Boolean and the &quot;My Conditional Indicator&quot; on the connector pane and saved the VI. In the calling VI, if I pass True, I get the result &quot;123&quot;. If I pass False, I get &quot;456&quot;. Make sense?&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Why did I bring this up in a posting about performance? Because it affects memory usage. LabVIEW has to account for two different ways that a conditional indicator can be updated (through a wire or by copying the default data). This interferes with the in-place algorithm and means that LabVIEW can&#39;t be as efficient with memory usage.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Conditional indicators aren&#39;t typically needed. I could have achieved the same effect with the following diagram...&lt;/p&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeRnhVffu5-8-CHQefeCzh001bX-IjWEDjUXD6NOCeGnwkphgGWhfPdNwC8ksgZMAIXprXrDrL1tthVFQus9UjjVNrXGsTJOu310o8GGfDamfBnKa6tPgNxhrYZ5DHcMthJNjug9Kzp3w/s1600-h/condind2.png&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5093123850431421922&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeRnhVffu5-8-CHQefeCzh001bX-IjWEDjUXD6NOCeGnwkphgGWhfPdNwC8ksgZMAIXprXrDrL1tthVFQus9UjjVNrXGsTJOu310o8GGfDamfBnKa6tPgNxhrYZ5DHcMthJNjug9Kzp3w/s320/condind2.png&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;(Or, for simple things like this, I could have used the Select function.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;So, you might want to look at your own code for places you are using conditional indicators to see if you can improve your memory usage. I wouldn&#39;t worry much about scalars and other small data, but if you have large arrays or strings, this can make a difference.&lt;/p&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2007/07/pop-quiz-answer.html</link><author>noreply@blogger.com (Brian Powell)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhozf45PFqc63NNK8VZ26NbPUoeqcAkUmmdhV846NCvm1XmbtrFrQWIb-xAoRu2FTdaTBqgYLPY5Q1_vF4pZSga0ZF_-aHsgbsRNyR9VVuOG7nm-D3nsvC6oa9UbPfe_fKy430xP-KTlXI/s72-c/condind.png" height="72" width="72"/><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-1692934819700518091</guid><pubDate>Thu, 26 Jul 2007 16:30:00 +0000</pubDate><atom:updated>2009-05-04T16:47:00.231-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Instrument Driver</category><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><category domain="http://www.blogger.com/atom/ns#">LXI</category><category domain="http://www.blogger.com/atom/ns#">NIWeek</category><category domain="http://www.blogger.com/atom/ns#">Software Engineering</category><title>NIWeek 2007</title><description>&lt;p&gt;NIWeek 2007 is fast approaching on August 7-9. If you use NI products (or are thinking of using them), this is an awesome event. Dozens of technical sessions, amazing keynotes, and scores of exhibitors. In addition, we have special summits for Graphical System Design, RF and Wireless Communications, Sound and Vibration, and Vision applications. Register now at &lt;a href=&quot;http://niweek.com/&quot;&gt;niweek.com&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;Staying informed during NIWeek&lt;/h3&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Whether or not you are attending NIWeek, watch the &lt;a href=&quot;http://forums.lavag.org/blog/niweek2007/&quot;&gt;NIWeek Blog&lt;/a&gt; by Michael Aivaliotis. Videos and stories throughout NIWeek.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;The official &lt;a href=&quot;http://twitter.com/niweek&quot;&gt;NIWeek Twitter link&lt;/a&gt; can keep you informed of late-breaking NIWeek news. Or maybe you can just twitter each other during my presentation about how great it is. ;-)&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;p&gt;Speaking of my presentations, I have three this year...&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Software Engineering - The NI Way&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Using LabVIEW in an LXI-Based Test System&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Head-to-Head High-Speed Bus Comparison: GPIB, PCI, PCI Express, USB, and Ethernet/LAN&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;p&gt;I&#39;ll post more information on these as we get closer.&lt;/p&gt;</description><link>http://openmeas.blogspot.com/2007/07/niweek-2007.html</link><author>noreply@blogger.com (Brian Powell)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-4015789747008628407</guid><pubDate>Fri, 22 Jun 2007 01:00:00 +0000</pubDate><atom:updated>2009-05-04T16:50:00.407-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Data</category><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><category domain="http://www.blogger.com/atom/ns#">Memory Management</category><category domain="http://www.blogger.com/atom/ns#">Performance</category><title>Yet another kind of data</title><description>&lt;blockquote&gt;&lt;strong&gt;Note...&lt;/strong&gt; I&#39;ll be in Vancouver, B.C., for next week&#39;s &lt;a href=&quot;http://sine.ni.com/apps/utf8/nievn.ni?action=display_offering&amp;amp;offering_id=442777&amp;amp;site=NIC&amp;amp;state=BC&amp;amp;node=61120&amp;amp;l=US&quot;&gt;LabVIEW Developer Education Days&lt;/a&gt; on June 26. I hope to see some of you there.&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;As I mentioned last time, there&#39;s a fourth kind of data that can show up in the profile window...&lt;strong&gt;Default Data&lt;/strong&gt;.&lt;/p&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;p&gt;I&#39;ll go back to the simple VI I used in the last posting. It&#39;s an array of int8&#39;s wired to an array of int8&#39;s. The default value of each array is empty. This means that when I load the VI into memory, the front panel doesn&#39;t have the arrays allocated. (And the VI only takes up about 8 kilobytes of disk space.) For my earlier profiling tests, I was typing a new value into the millionth element of the array control, which allocates the million bytes for it. When I ran this VI, it consumed five megabytes of data.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Now let&#39;s see what happens when I go ahead and &quot;Make Current Value Default&quot; for the million-byte array...&lt;/p&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqaTIdaunQY2PF24TpsWK__Isx2Cl9DfWV2Vlj_yDPlBM0LK5mDFx1VJ6IBOmaFrbtYeigeTNdqKJkP2IeL2SvSPDPvyi3VLJNme4kB2uAH2NT9VPS3PT8sO2I8lHziZ7dZ_1jZ9Wi1AM/s1600-h/blog1-profwin.png&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5077905965788640114&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqaTIdaunQY2PF24TpsWK__Isx2Cl9DfWV2Vlj_yDPlBM0LK5mDFx1VJ6IBOmaFrbtYeigeTNdqKJkP2IeL2SvSPDPvyi3VLJNme4kB2uAH2NT9VPS3PT8sO2I8lHziZ7dZ_1jZ9Wi1AM/s320/blog1-profwin.png&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;When I run the VI (and I&#39;ve run it more than once, so you can see the final values in the profile window), you see that the five megabytes has turned into six megabytes. The profile window is now showing you that there&#39;s an extra megabyte of memory being consumed by this VI, because of the default data.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;To take it a step further, if I also made the indicator array&#39;s data the default, I&#39;d be growing the memory consumption to seven megabytes.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Default data is often a good thing, but we sometimes find VIs where we&#39;ve saved a large amount of data as default accidentally. This is easy to do if you select the &quot;Make All Current Values Default&quot; menu item from the Edit menu. I try to stay away from this menu item, and instead only set the default value for the controls I know that need it.&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;em&gt;Pop Quiz:&lt;/em&gt; Default data on a front panel control is useful, for example, when the control is on the connector pane, but isn&#39;t wired in the caller&#39;s diagram. The subVI runs with the default value in that case. When is default data on an indicator useful?&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;Note that the VI Analyzer reports non-empty default values for arrays so that you can take a closer look at them. (The VI Analyzer is a separate add-on for LabVIEW that can check your VIs for common programming errors, style conformance, and in this case, performance issues.)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;Interesting side note...&lt;/em&gt; When I save my new test VI to disk, how much disk space do you think it consumes? Seven megabytes? Two megabytes?&lt;/p&gt;&lt;br /&gt;&lt;p&gt;It turns out that it takes up about 8 kilobytes, which is about what it took when I hadn&#39;t saved any default data. Why is that? It&#39;s because my default data was entirely made up of zeros. The VI&#39;s data gets compressed when it&#39;s saved, and a million zeros compresses very well.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Just for fun, I created an identical VI with a million bytes of random data saved as default data for each front panel array. That VI took about 1.2 megabytes on disk—still, that&#39;s a 40% savings over the uncompressed data, which is pretty good, I think. (Your mileage may vary.)&lt;/p&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2007/06/yet-another-kind-of-data.html</link><author>noreply@blogger.com (Brian Powell)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqaTIdaunQY2PF24TpsWK__Isx2Cl9DfWV2Vlj_yDPlBM0LK5mDFx1VJ6IBOmaFrbtYeigeTNdqKJkP2IeL2SvSPDPvyi3VLJNme4kB2uAH2NT9VPS3PT8sO2I8lHziZ7dZ_1jZ9Wi1AM/s72-c/blog1-profwin.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-1067448862412971553</guid><pubDate>Tue, 19 Jun 2007 22:30:00 +0000</pubDate><atom:updated>2009-05-04T16:49:44.626-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Data</category><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><category domain="http://www.blogger.com/atom/ns#">Memory Management</category><category domain="http://www.blogger.com/atom/ns#">Performance</category><title>LabVIEW Performance and Memory Management</title><description>&lt;p&gt;When I talk about performance optimization in LabVIEW, I pretty quickly focus on memory management issues. Memory isn&#39;t the only concern. It&#39;s just that memory issues are sometimes the hardest to understand. Plus, since LabVIEW is a dataflow language, we have a lot of emphasis on the data.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;One way to monitor memory usage in LabVIEW is to use the profiler.&lt;/p&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUNR_zmVDfd2E_bc2LpU0nUg6CxPqQwmMoUVGTdSKAVt1i_ioRXXjrhItxqI5iX-QJ0siQuo7ERqQzo0pkpVSoSlzQCnzYYOvtVLgFQKhaqjcJfJQ4hRXzsBoAgj14VwvZ5qICY60uTJE/s1600-h/profile-menu.PNG&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5077132815840785202&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUNR_zmVDfd2E_bc2LpU0nUg6CxPqQwmMoUVGTdSKAVt1i_ioRXXjrhItxqI5iX-QJ0siQuo7ERqQzo0pkpVSoSlzQCnzYYOvtVLgFQKhaqjcJfJQ4hRXzsBoAgj14VwvZ5qICY60uTJE/s320/profile-menu.PNG&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;p&gt;Select Profile Memory Usage to see how much memory each of your VIs is consuming.&lt;/p&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi564wozCwVp3uZ6yy_uoExuSHeW8-xE_rDTEys4fQ5C3pQZxURUFqdmNbjDpVEiTj8IOVKOf6Q_LYsbmff3QFhj1clgiqm6GNEcBfP-FGVIH_fizfAZzggpg9FFgGUqeNApKBz8dorU0M/s1600-h/profile-window1.png&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5077132983344509762&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi564wozCwVp3uZ6yy_uoExuSHeW8-xE_rDTEys4fQ5C3pQZxURUFqdmNbjDpVEiTj8IOVKOf6Q_LYsbmff3QFhj1clgiqm6GNEcBfP-FGVIH_fizfAZzggpg9FFgGUqeNApKBz8dorU0M/s320/profile-window1.png&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;Here&#39;s a simple VI I wrote that contains an array control wired to an array indicator. I changed the data type of the array element to be a 1-byte integer. This makes it easy to see how much memory the array is taking--one million array elements equals one million bytes. (If we had an array of doubles, one million array elements equals eight million bytes.)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;I&#39;ve initialized the control to have one million elements. (Actually, 1,000,001, but who&#39;s counting. ;-) Before I run the VI, it is using 1 million bytes for its data--the indicator is an empty array. The profiler won&#39;t show you this; it doesn&#39;t do its thing until you run the VI.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Okay, once I run the VI, how much memory do you think it takes? Let&#39;s see what the profiler says...&lt;/p&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm3jqKVG7GtkpH2hHYOHoSel3xRRn7M7EokSfCv8GgMng0mFMyjKdMKuGK0zwW7AehyphenhyphenE8Ttcq6KpRenFGkoZ61771SMPw9554p_zRUN-gC1bQgNJNyFdTkrUJMjrzPnB94FEB-AKa_iXE/s1600-h/profile-window2.png&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5077132983344509778&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm3jqKVG7GtkpH2hHYOHoSel3xRRn7M7EokSfCv8GgMng0mFMyjKdMKuGK0zwW7AehyphenhyphenE8Ttcq6KpRenFGkoZ61771SMPw9554p_zRUN-gC1bQgNJNyFdTkrUJMjrzPnB94FEB-AKa_iXE/s320/profile-window2.png&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;Approximately 4 million bytes! What&#39;s going on?&lt;/p&gt;&lt;br /&gt;&lt;p&gt;In my last blog entry, I said I&#39;d tell you about the three kinds of data in LabVIEW, and they&#39;re all showing up in this profile result. The three types of data are...&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Operate Data&lt;/strong&gt;—Every front panel control and indicator keeps data that we call the &quot;operate data&quot;.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Execute Data&lt;/strong&gt;—Every wire on the diagram represents a buffer of data. The data for the diagram is called &quot;execute data&quot; or &quot;execution data&quot;.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Transfer Data&lt;/strong&gt;—Buffer used to isolate execution threads (which work with execution data) from the user interface thread (which works with operate data).&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;p&gt;So why do we need these three kinds of data? As we&#39;ll see in later postings, the diagram likes to share execution data buffers among parts of the diagram, so the data that originally came from a control can get overwritten with intermediate and final results as the VI executes. You don&#39;t want front panel control&#39;s data to be changing while the VI runs, though! This means that we have to have a separation between the diagram and the panel.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The transfer buffer is used as an optimization in LabVIEW&#39;s multithreaded execution system. When the diagram wants to send data to an indicator, it has to work with LabVIEW&#39;s user interface thread to draw the data. There can be many execution threads, but there&#39;s only one user interface (UI) thread. Thus, the UI thread can potentially be a big bottleneck if all those execution threads had to sit and wait for it. That&#39;s where the transfer buffer comes in. It&#39;s a buffer that both the UI thread and execution threads can quickly access without (usually) blocking.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;So when a block diagram updates an indicator, the execution data is copied to the transfer buffer by an execution thread, and some time later, the UI thread reads the transfer buffer and copies the data to the operate data.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;So back to our example. We have a million bytes in the control (operate data), a million bytes in the control&#39;s transfer buffer, a million bytes on the wire (execute data), a million bytes in the indicator&#39;s transfer buffer, and a million bytes in the indicator (operate data). That adds up to five million bytes, right?&lt;/p&gt;&lt;br /&gt;&lt;p&gt;But the profile window said four million. What&#39;s the deal? Recall that I said that the profiler does its thing while the VI is running. It turns out that in this simple diagram, the VI stops running before the UI thread has had a chance to make the last copy of the data (from the transfer buffer to the indicator&#39;s operate data).&lt;/p&gt;&lt;br /&gt;&lt;p&gt;When profiling, I tell people to run their VIs a few times to make sure that buffers are allocated. If I run the VI again, I&#39;ll now see five million bytes...&lt;/p&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4bN0lxfbNPpFejvmJ7ool34PWyII9P6KOzUaX6GTKC0m0yriEaepG_fYaxtO2OjIXTTCj2sBtcV_2GObsF5G8IlqL2RsoVfoPE0INzMAhHFQhcJzZy5zeCXoZMeJOsRr3J8dfs6tiOIo/s1600-h/profile-window3.png&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5077132987639477090&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4bN0lxfbNPpFejvmJ7ool34PWyII9P6KOzUaX6GTKC0m0yriEaepG_fYaxtO2OjIXTTCj2sBtcV_2GObsF5G8IlqL2RsoVfoPE0INzMAhHFQhcJzZy5zeCXoZMeJOsRr3J8dfs6tiOIo/s320/profile-window3.png&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;If this were a more realistically complicated VI, there&#39;s a good chance that the profiler would have counted all the data the first time.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;Next up...&lt;/em&gt; I lied. There&#39;s a fourth kind of data that can show up in the profile window. What is it?&lt;/p&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2007/06/labview-performance-and-memory.html</link><author>noreply@blogger.com (Brian Powell)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUNR_zmVDfd2E_bc2LpU0nUg6CxPqQwmMoUVGTdSKAVt1i_ioRXXjrhItxqI5iX-QJ0siQuo7ERqQzo0pkpVSoSlzQCnzYYOvtVLgFQKhaqjcJfJQ4hRXzsBoAgj14VwvZ5qICY60uTJE/s72-c/profile-menu.PNG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-5812312990790481661</guid><pubDate>Wed, 13 Jun 2007 14:33:00 +0000</pubDate><atom:updated>2009-05-04T16:50:31.430-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Data</category><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><category domain="http://www.blogger.com/atom/ns#">Memory Management</category><category domain="http://www.blogger.com/atom/ns#">Performance</category><title>LabVIEW Performance, The Early Years</title><description>&lt;p&gt;I started working at NI in 1988, when LabVIEW 1 was shipping. LabVIEW 1 was &lt;em&gt;so&lt;/em&gt; cool. But once you got past the awesome (for the 1980&#39;s) graphics and graphical programming paradigm and started to use it for real work, you noticed that it was a tad slow.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;We learned a lot doing LabVIEW 1. So much so that we decided to throw away the source code and start over with LabVIEW 2. While LabVIEW 1 was an interpreted language, LabVIEW 2 was built from the ground up to be compiled. And when it came out in 1990, LabVIEW 2.0 demonstrated much better performance. For some applications, it was an order of magnitude or more faster. (So fast, in fact, that we ran into problems talking to many GPIB instruments that couldn&#39;t keep up with commands we were sending.)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;LabVIEW 3 released in late 1993, and was the first version of LabVIEW that unified our original Macintosh codebase with our PC and Sun versions. Soon after, I created the first presentation to customers about LabVIEW performance...&lt;/p&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;p&gt;In May 1994, I was invited to Sweden to present &quot;Tips &amp;amp; Techniques for Improving LabVIEW Performance&quot;. It discussed how to take advantage of the many performance optimizations available in LabVIEW, and also discussed patterns to avoid, such as local variables. (Don&#39;t worry, I&#39;ll cover these in subsequent postings.)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;My presentation was based on some earlier technical notes, as well as an article by Monnie Anderson in the now defunct &lt;em&gt;LabVIEW Technical Resource&lt;/em&gt;. (&lt;em&gt;LabVIEW Memory Secrets&lt;/em&gt;, Volume 2, Number 1, Winter 1994)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Before I left for Stockholm, I practiced the presentation in front of the LabVIEW team. This turned out to be a great experience—I presented to the toughest audience first. It did yield one unexpected result: the LabVIEW development team did not agree on how LabVIEW worked!&lt;/p&gt;&lt;br /&gt;&lt;p&gt;More precisely, I had found a common situation where LabVIEW made an extra copy of data that unexpected and unnecessary. Within a few days, our compiler expert had a fix that later came out in LabVIEW 3.1.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Why am I telling you these stories? Even though the latest LabVIEW is many orders of magnitude faster than LabVIEW 1, and even though we can handle much more complicated applications than we could a couple of decades ago, we&#39;re not resting. We&#39;re still working on performance issues today.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;For example, we&#39;ve seen much growth in the use of multi-core processors in affordable PCs. While LabVIEW has been ahead of this curve and able to take advantages of multiple processors and cores since our 1998 release of LabVIEW 5.0, we&#39;re continuing to look at new ways to leverage all this computing power.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Another reason for these stories is to make it clear that performance issues are sometimes difficult to understand. And I&#39;m hoping that my future blog posts will help clarify these for you.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;Next up...&lt;/em&gt; The three kinds of data in LabVIEW.&lt;/p&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2007/06/labview-performance-early-years.html</link><author>noreply@blogger.com (Brian Powell)</author><thr:total>5</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-2844083411914148842</guid><pubDate>Tue, 12 Jun 2007 22:45:00 +0000</pubDate><atom:updated>2009-05-04T16:50:54.165-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><title>Expanding Scope</title><description>&lt;p&gt;I returned recently from a couple of trips lamenting that I haven&#39;t been keeping this blog current. I was visiting customers in Massachusetts, Connecticut, and Colorado, discussing topics ranging from &quot;performance optimization&quot; to &quot;software engineering&quot;. It occurred to me that my blog&#39;s current focus isn&#39;t keeping up with my everyday work life.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;I spend a lot of my day at NI working on &quot;next year&#39;s LabVIEW&quot;. It&#39;s cool stuff. You&#39;ll like it. But it doesn&#39;t produce much fodder for my blog, because I can&#39;t talk about specifics yet. Also, my current project is pretty far-reaching, and doesn&#39;t fit neatly into just &quot;data acquisition and instrument control&quot;.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;So, I&#39;m going to start expanding the scope of my blog a little to cover a few more topics that I care about—and that many of you have told me that you care about, too.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;Coming soon...&lt;/em&gt; The first of several postings about performance issues. If you have other LabVIEW-related topics you&#39;d like me to cover, please post a comment or send an email.&lt;/p&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;!-- Type rest of the post here --&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2007/06/expanding-scope.html</link><author>noreply@blogger.com (Brian Powell)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-9211336065419057634</guid><pubDate>Fri, 20 Apr 2007 12:30:00 +0000</pubDate><atom:updated>2007-04-20T07:37:51.134-05:00</atom:updated><title>A Good Cause</title><description>&lt;p&gt;Today&#39;s the day I leave for the MS-150, a two-day, 180-mile bike ride from Houston to Austin, Texas.  I&#39;ll be riding along with 12,000 other friends and strangers to raise money for the National Multiple Sclerosis Society.  This is my third year to do the ride.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Am I ready?  Hmm.  I&#39;m not sure I can ever be &quot;ready&quot; for a 180-mile bike ride.  It is definitely hard.  It&#39;s also fun to be doing this with nearly a hundred of my co-workers.  And I take pride in my own personal accomplishment, as well as being able to help the National MS Society.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;My goal is to raise $1500 for the society.  The National MS Society is a 501(c)(3) organization, so your donation may be tax deductible.  Your donation benefits thousands of people affected by multiple sclerosis.  You can donate online here...&lt;br&gt;&lt;a href=&quot;http://ms150.org/edon.cfm?id=190138&quot;&gt;http://ms150.org/edon.cfm?id=190138&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;You can learn more about the society, about multiple sclerosis, and about the bike ride here...&lt;br&gt;&lt;a href=&quot;http://ms150.org/ms150/about_ms_society.cfm&quot;&gt;http://ms150.org/ms150/about_ms_society.cfm&lt;/a&gt;&lt;/p&gt;</description><link>http://openmeas.blogspot.com/2007/02/good-cause.html</link><author>noreply@blogger.com (Brian Powell)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-1117931635630752102</guid><pubDate>Tue, 20 Feb 2007 00:07:00 +0000</pubDate><atom:updated>2009-05-04T16:51:24.234-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><category domain="http://www.blogger.com/atom/ns#">serial</category><category domain="http://www.blogger.com/atom/ns#">VISA</category><title>La Mort du Serpdrv</title><description>&lt;p&gt;A series of &quot;interesting&quot; events have conspired to keep me away from my blog lately, so I decided to write about something &quot;juicy&quot; to start things back up. (Where &quot;juicy&quot; means &quot;controversial for people who have been using LabVIEW for more than five or so years&quot;. ;-)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Today&#39;s topic is about an entity named &quot;serpdrv&quot;, mentioned in &lt;a href=&quot;http://openmeas.blogspot.com/2006/08/so-many-choices.html&quot;&gt;an earlier post&lt;/a&gt;. This entity provided serial (RS-232) support for LabVIEW 2.5 through LabVIEW 6.x. In LabVIEW 7, I arranged for its demise. This posting will talk a little about how it came into existence, and how it made its exit. You&#39;ll hopefully gain some insight into how we reach the decision to phase out aging features.&lt;/p&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;p&gt;In January of 2002, I posted a message to the Info-LabVIEW mailing list to help a LabVIEW user solve a problem with his serial I/O. Near the end of my posting, I inserted the following text...&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt;I will again encourage people to use VISA for all future serial port development. At some point, I would like to see the &quot;serpdrv&quot; VIs go away. (And since I&#39;m the decision-maker on this, it&#39;ll probably happen. :-)&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;And thus began an outpouring of support for this little thing we call &quot;serpdrv&quot;.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;It&#39;s also the day that I started an internal document called &quot;La Mort du Serpdrv&quot;, to start my plan to remove &quot;serpdrv&quot; from LabVIEW. You can construe the existence of this document a couple of ways. Some might consider it our battle plan to kill off the feature. I personally considered it a place to gather user feedback, document shortcomings and features of serpdrv, and come up with a plan to strengthen our other options for serial I/O so that removing serpdrv would be easier.&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;The Birth of Serpdrv&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;LabVIEW 1 and 2, as many of you recall, were only available on the Apple Macintosh. Macs had &lt;a href=&quot;http://en.wikipedia.org/wiki/EIA-422&quot;&gt;RS-422&lt;/a&gt; serial ports, disguised as the &quot;modem&quot; and &quot;printer&quot; ports. They were quirky not only from a hardware perspective, but also from software. On the old Macs, you used the &quot;Device Manager&quot; to talk to the serial drivers named &quot;.Ain&quot;, &quot;.Aout&quot;, &quot;.Bin&quot;, and &quot;.Bout&quot;. &lt;a href=&quot;http://en.wikipedia.org/wiki/Inside_Macintosh&quot;&gt;Inside Macintosh&lt;/a&gt; described the data structures for the driver and how to get the serial port to do all the right things.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;In LabVIEW, we created some low-level primitives for this Macintosh Device Manager. We then built the serial VIs on top of the Device Manager primitives. (And as I recall, we built GPIB and DAQ VIs on top of those same Device Manager primitives to get to our own devices.)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;When we ported LabVIEW to Windows and SunOS, we needed to invent a cross-platform approach to serial I/O. Every platform did something completely different, so we made a decision not unlike many other decisions of the day: Let&#39;s make everything look like a Mac.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;So, we invented a Device Manager for LabVIEW for Windows and Sun that looked like the Apple Device Manager. Then we intented Macintosh-like &quot;drivers&quot; that plugged into our new proprietary device manager. Constrained by the Windows 8.3 filenaming conventions of the day, we used the names &quot;serpdrv&quot;, &quot;gpibdrv&quot;, and &quot;daqdrv&quot; for those low-level drivers.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;And that&#39;s how things stayed for the next several years. Our GPIB and DAQ support eventually switched to more modern technology. Serpdrv, however, remained. We&#39;d fix the occasional bug, but the overall structure of serpdrv stayed the same.&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;And Then There Was VISA...&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;Around the time of LabVIEW 4.1 and 5.0, NI-VISA came into existence. Among other things, VISA could read and write to serial ports and the GPIB. At first, it wasn&#39;t as good at serial I/O as &quot;serpdrv&quot;, and it wasn&#39;t as good at GPIB as our NI-488.2 driver. What VISA had going for it is that it was a combined API layer that made serial and GPIB devices look nearly the same. Since many hardware devices had both GPIB and RS-232 options, we could write a single instrument driver with VISA, and it would work regardless of the I/O option in the device. (And the benefit continues to this day with USB- and LAN-based instruments.)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Around the LabVIEW 5 and 6 timeframe, I became the manager of the part of LabVIEW that was responsible for all the forms of I/O. Among many other things, I was responsible for &quot;serpdrv&quot;, and I was responsible for ensuring that VISA worked well in LabVIEW.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Even then, &quot;serpdrv&quot; was legacy code that only one person (not me) really understood. I remember investigating a problem where hardware flow control didn&#39;t work. The code to handle flow control clearly didn&#39;t match what Microsoft said it should. So I changed it. But that broke something else. This is where I start to question whether we need two ways to do serial I/O in LabVIEW.&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;Making VISA better&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;So I put out a challenge to the VISA group... &quot;Remove the barriers that keep VISA from replacing serpdrv.&quot;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;VISA already had a lot of things going for it. It was a better API for LabVIEW. It had more features, such as control over individual hardware lines. It also had fewer bugs—for example, hardware flow control worked. On the other hand, it was slower and bigger.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The NI-VISA group responded to the challenge. The speed problems were caused by extra threading overhead in the driver. It didn&#39;t take long for VISA to be faster than &quot;serpdrv&quot; for serial I/O. They also created a small VISA serial runtime that the LabVIEW Application Builder could use for deployment. It wasn&#39;t as tiny as &quot;serpdrv&quot;, but it was a big improvement over the tens-of-megabytes for the full VISA driver. And then we had to work through some VISA licensing issues so that LabVIEW users could freely distribute applications that used the VISA serial runtime.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;What our customers didn&#39;t see was a lot of internal discussion and &lt;em&gt;angst&lt;/em&gt;. Besides feedback from external customers, we also had feedback from our own FieldPoint group. They had industrial controllers with very limited processing and memory capability. Switching to VISA was a bigger deal for them than for most of our external customers.&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;And &quot;serpdrv&quot; disappears...&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;By LabVIEW 7, VISA had improved and I decided that we could proclaim that it was good enough that we could deprecate &quot;serpdrv&quot;. We created a set of compatibility VIs that presented the old API, but it was built on top of the VISA functions. Many people did not notice. Some did, leading to another round of commentary on Info-LabVIEW.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;It didn&#39;t take long for somebody to figure out that the old &quot;serpdrv&quot; VIs would still work in LabVIEW 7. This gives our customers an &quot;out&quot; if they absolutely don&#39;t want to use VISA for serial I/O. While not supported (or even tested), they should still work in LabVIEW 8.x, too. That&#39;s because the mysterious Device Manager primitives are still in LabVIEW. But that won&#39;t always be the case, and I can announce to you today that we&#39;ll remove the Device Manager interface in a future version of LabVIEW. I don&#39;t know when, but it&#39;s going to happen.&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;Moving on...&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;So I want you to realize that we do agonize over changes like this. Before we started, VISA was in many ways superior to the old serial VIs. Not satisfied, we put in a substantial amount of additional effort to make it better still. I still look back over my shoulder to see if I&#39;ve missed something, but I&#39;m confident that &quot;serpdrv&quot; won&#39;t be coming back.&lt;/p&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2007/02/la-mort-du-serpdrv.html</link><author>noreply@blogger.com (Brian Powell)</author><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4273799050747704870.post-6712600960337180500</guid><pubDate>Fri, 29 Dec 2006 23:00:00 +0000</pubDate><atom:updated>2009-05-04T16:51:59.982-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Instrument Driver</category><category domain="http://www.blogger.com/atom/ns#">IVI</category><category domain="http://www.blogger.com/atom/ns#">IVI-C</category><category domain="http://www.blogger.com/atom/ns#">LabVIEW</category><category domain="http://www.blogger.com/atom/ns#">VISA</category><title>Using IVI-C and VXIpnp Drivers in LabVIEW</title><description>&lt;p&gt;Happy end of 2006 to everybody out there.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;In earlier &lt;a href=&quot;http://openmeas.blogspot.com/2006/08/more-on-instrument-drivers.html&quot;&gt;posts&lt;/a&gt;, I&#39;ve talked about the various kinds of instrument drivers. All of the modern types of instrument drivers work reasonably well in LabVIEW, but some work better than others. Specifically, LabVIEW Plug and Play instrument drivers (written in native LabVIEW source code) give LabVIEW users the best experience.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;But not all instrument drivers are written in LabVIEW. This post talks about instrument drivers written in C, and how to bring them into the LabVIEW environment. C is considered a kind of &quot;universal language&quot;; C compilers are available for a huge number of platforms. So, vendors whose mission is to write a single driver that is usable on many platforms in many different environments often write a driver in C. (Though a reminder from an &lt;a href=&quot;http://openmeas.blogspot.com/2006/09/ivi-c-and-ivi-com.html&quot;&gt;earlier post&lt;/a&gt;, the one-size-fits-all instrument driver isn&#39;t a particularly good idea.)&lt;/p&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;p&gt;The first step in using a C-based driver in LabVIEW is to turn the C code into a DLL or Shared Library. Often, the person who wrote the driver does this for you, at least for Microsoft Windows. How to compile the driver is left as an exercise for the reader. My focus is on making the resulting shared library usable in LabVIEW.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;To use a shared library (DLL) in LabVIEW, you use the Call Library Node (CLN) function on the diagram. You configure a CLN for every function you want to call. Typically, you create a single VI for each C function, and then use these VIs in higher-level diagrams. (Click to enlarge)&lt;/p&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiX5bMRlCEdo-WkRkI97IiHy7OzyfpGNZFJYbafh8CPz-Zu5t2x6A3HxKR3u62mo0ZMYicZNni5N60ZWL9jQXlveLGh4up5hXOO6gkAwe8UMClvAKLqxHNkaF1O8kC5vdR1h-_xNIY2TP4/s1600-h/cln.png&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5014049079229422818&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiX5bMRlCEdo-WkRkI97IiHy7OzyfpGNZFJYbafh8CPz-Zu5t2x6A3HxKR3u62mo0ZMYicZNni5N60ZWL9jQXlveLGh4up5hXOO6gkAwe8UMClvAKLqxHNkaF1O8kC5vdR1h-_xNIY2TP4/s320/cln.png&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;As you can imagine, if you have a shared library with dozens or hundreds of entry points, it can be tedious to make these VI wrappers. Fortunately, we have tools to make this easier.&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;Kinds of C-based Instrument Drivers&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;Broadly speaking, there are three different kinds of C-based instrument drivers...&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Drivers that do not conform to VXIpnp standards&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Drivers that conform only to VXIpnp standards&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Drivers that conform to both VXIpnp and IVI-C standards&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;p&gt;The more standards a C-based driver conforms to, the more we know about how it is structured. The more we know about it, the better job we can do pulling the driver into the LabVIEW environment.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;For drivers that don&#39;t conform to VXIpnp, we can&#39;t make any assumptions at all. We see this more often with somewhat esoteric instruments, or instruments from industries other than traditional test &amp;amp; measurement.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;For VXIpnp drivers, we know they have an Initialize, a Close, a certain form of error checking, and a few other details. We don&#39;t know anything about instrument-specific functionality, such as whether a device is a DMM, a Scope, or something else.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;IVI-C drivers go a step further, and define more of the API, at least for certain classes of instruments (such as DMMs, Scopes, Switches, etc.). This lets us more intelligently bring these drivers into the LabVIEW environment.&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;Tools for Importing&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;There are two separate LabVIEW tools you can use to help import these drivers. The first is the &lt;strong&gt;DLL Import Wizard&lt;/strong&gt;, for importing generic (not VXIpnp or IVI-C) DLLs. The NI web site has a &lt;a href=&quot;http://zone.ni.com/devzone/cda/tut/p/id/2818&quot;&gt;tutorial&lt;/a&gt; about this tool, so I won&#39;t go into much detail about it here.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;If you have a VXIpnp or IVI-C driver, you want to use a different tool—the &lt;strong&gt;LabVIEW Instrument Driver Import Wizard&lt;/strong&gt;, found on &lt;a href=&quot;http://www.ni.com/devzone/idnet/development.htm&quot;&gt;Instrument Driver Development Tools and Resources&lt;/a&gt; page on ni.com.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Unlike the generic DLL Import Wizard, the Instrument Driver Import Wizard is able to use its knowledge of the VXIpnp and IVI-C standards to create better wrapper VIs. It even makes an attempt to translate the C terminology in the help to LabVIEW terminology. Here&#39;s an example, showing the original C help and the translation into LabVIEW terminology...(Click to enlarge)&lt;/p&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi04XBKMhQxgwnF9rEzFl2ooz5XBBQcbjPLvGiYHJdzQucnV4WRLBIp8bMQsFPCF3Qm8mV3OwXm503vpLtEuYcVzgF18DpuhLjY8tlZiDvPQlr4ScjV91AFTLMnYBWmzLdOBTZmZrRRuYM/s1600-h/fl45-help.png&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5014065851076713730&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi04XBKMhQxgwnF9rEzFl2ooz5XBBQcbjPLvGiYHJdzQucnV4WRLBIp8bMQsFPCF3Qm8mV3OwXm503vpLtEuYcVzgF18DpuhLjY8tlZiDvPQlr4ScjV91AFTLMnYBWmzLdOBTZmZrRRuYM/s320/fl45-help.png&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;The Instrument Driver Import Wizard understands VISA and IVI refnum data types, it knows how the driver does error checking, and it creates better icons. It isn&#39;t perfect—there&#39;s a very good chance that you will want to tweak some of the resulting VIs to improve front panel layout, connector panes, and help. You may also want to clean up parameters to make them easier to use in LabVIEW—for example, integers that represent bitfields that you are supposed to &quot;OR&quot; together. But, the Instrument Driver Import Wizard handles a lot of the conversion for you.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;If it isn&#39;t obvious... If you have a VXIpnp or IVI-C driver, you use the Import Instrument Driver Wizard, not the Generic DLL Import Wizard.&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;Final Caveats&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;The Instrument Driver Import Wizard used to be called the &quot;CVI Function Panel Converter&quot; and we shipped it with LabVIEW. Beginning with LabVIEW 8, we made it a web download. Some instrument vendors complained about this. They were claiming good LabVIEW support for their C-based drivers, but telling end users to go run the tool themselves to create the LabVIEW VIs.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;My philosophy is that most end users don&#39;t need to run this tool. &lt;em&gt;In an ideal world, the developer of the C instrument driver should be the one to run the LabVIEW Instrument Driver Import Wizard.&lt;/em&gt; Since the output of the tool often needs some tweaking (or even fixes to the C code), I&#39;d prefer that only one person (the driver developer) create the wrapper. If every end user has to create the wrapper VIs, and then go hand-tweak them, it isn&#39;t very efficient. Many end users aren&#39;t going to understand the C driver well enough to make these changes easily.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Another caveat is that these tools only run on Windows. Fortunately, the resulting VIs can run on any LabVIEW platform (assuming you can recompile the DLL on the other platforms). Many VXIpnp drivers can run on multiple platforms. Interestingly, members of the IVI Foundation have told me that conformant IVI drivers can only run on Microsoft Windows. So even though we have &lt;a href=&quot;http://zone.ni.com/devzone/cda/tut/p/id/3809&quot;&gt;instructions for porting IVI-C drivers to Linux&lt;/a&gt;, the Linux driver may not officially be an IVI driver. Regardless, the wrappers you create for LabVIEW should work with such a driver.&lt;/p&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://openmeas.blogspot.com/2006/12/using-ivi-c-and-vxipnp-drivers-in.html</link><author>noreply@blogger.com (Brian Powell)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiX5bMRlCEdo-WkRkI97IiHy7OzyfpGNZFJYbafh8CPz-Zu5t2x6A3HxKR3u62mo0ZMYicZNni5N60ZWL9jQXlveLGh4up5hXOO6gkAwe8UMClvAKLqxHNkaF1O8kC5vdR1h-_xNIY2TP4/s72-c/cln.png" height="72" width="72"/><thr:total>0</thr:total></item></channel></rss>