<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Automating readings with the Agilent 34461A</title><link>/technologies/test-and-measurement/b/blog/posts/automating-readings-with-the-agilent-34461a</link><description>The Agilent 34461A has several connectivity options - LAN and USB, by default, with GPIB available as an option. This blog post will detail my experience with using both LAN and USB. Unfortunately, I do not have any equipment that uses GPIB, however,</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Automating readings with the Agilent 34461A</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/automating-readings-with-the-agilent-34461a</link><pubDate>Fri, 24 Feb 2017 02:10:36 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1f715de3-255d-47e0-a410-e9a1499c8649</guid><dc:creator>agyaglikci</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Thanks for the Python class! &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Seems like you need a quick update in the code, just because of an update of the backend. Since util.get_string does not have a length argument anymore, you need to remove 255s at the lines 154,155,156 of usbtmc.py:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;manufacturer=usb.util.get_string(self.usb_dev,&lt;span style="text-decoration:line-through;"&gt; 255,&lt;/span&gt; self.usb_dev.iManufacturer)product=usb.util.get_string(self.usb_dev, &lt;span style="text-decoration:line-through;"&gt;255,&lt;/span&gt; self.usb_dev.iProduct)serial=usb.util.get_string(self.usb_dev, &lt;span style="text-decoration:line-through;"&gt;255,&lt;/span&gt; self.usb_dev.iSerialNumber)&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Otherwise it returns the following error as expected:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;ValueError: The device does not support the specified langid&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=17707&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>