<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263352</link>
    <title>MATLAB Central Newsreader - usb-serial error with fclose Mac OS X</title>
    <description>Feed for thread: usb-serial error with fclose Mac OS X</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 16 Oct 2009 19:42:02 -0400</pubDate>
      <title>usb-serial error with fclose Mac OS X</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263352#687653</link>
      <author>Scott </author>
      <description>Hi guys, I'm trying to use a usb to serial cable with matlab &lt;br&gt;
&lt;br&gt;
s = serial('/dev/tty.usbserial');&lt;br&gt;
fopen(s)&lt;br&gt;
&lt;br&gt;
the above works fine.  However, when I try to close to the port with &lt;br&gt;
&lt;br&gt;
fclose(s)&lt;br&gt;
&lt;br&gt;
Matlab crashes.  Anyone have similar problems, and find a solution?</description>
    </item>
    <item>
      <pubDate>Fri, 16 Oct 2009 19:48:05 -0400</pubDate>
      <title>Re: usb-serial error with fclose Mac OS X</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263352#687654</link>
      <author>Trent Jarvi</author>
      <description>&lt;br&gt;
&quot;Scott &quot; &amp;lt;sparcheta3@gatech.edu&amp;gt; wrote in message &lt;br&gt;
news:hbaiaa$gfj$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Hi guys, I'm trying to use a usb to serial cable with matlab&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; s = serial('/dev/tty.usbserial');&lt;br&gt;
&amp;gt; fopen(s)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; the above works fine.  However, when I try to close to the port with&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; fclose(s)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Matlab crashes.  Anyone have similar problems, and find a solution?&lt;br&gt;
&lt;br&gt;
Hi Scott,&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
We did not see that in testing for 9b.  It would be best to call into &lt;br&gt;
support your details but we would need the following to reproduce the &lt;br&gt;
problem.&lt;br&gt;
&lt;br&gt;
Which version of MATLAB?&lt;br&gt;
32 bit or 64 bit MAC OS X?&lt;br&gt;
What brand/model of USB adaptor are you using?&lt;br&gt;
&amp;nbsp;&amp;nbsp;- links to the product and driver are a plus. </description>
    </item>
    <item>
      <pubDate>Thu, 18 Feb 2010 19:31:21 -0500</pubDate>
      <title>Re: usb-serial error with fclose Mac OS X</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263352#719008</link>
      <author>Nikolas </author>
      <description>Hi,&lt;br&gt;
I have the same problem.  I have a USB-&amp;gt; serial device using the driver from : &lt;br&gt;
&lt;a href=&quot;http://osx-pl2303.sourceforge.net/&quot;&gt;http://osx-pl2303.sourceforge.net/&lt;/a&gt;&lt;br&gt;
and have the same error--- I can connect, read and write, but not close a connection. I am running Matlab 2009a on OSX 10.6.2 &lt;br&gt;
i get this error : segmentation violation&lt;br&gt;
&lt;br&gt;
Stack Trace:&lt;br&gt;
&amp;nbsp;&amp;nbsp;[0] librxtxSerial.jnilib:Java_gnu_io_RXTXPort_interruptEventLoop~(0x18807910, 0xb09030c0, 0x250d5210, 9) + 137 bytes&lt;br&gt;
&amp;nbsp;&amp;nbsp;[1] 0x1900b839(0, 0x19009a09, 0x1bc20128, 0xb09030c4)&lt;br&gt;
&amp;nbsp;&amp;nbsp;[2] 0x19003db1(0, 0x1bc20128, 0xb09030f4, 0x25092466 &quot;&#182;X&quot;)&lt;br&gt;
&amp;nbsp;&amp;nbsp;[3] 0x19003db1(0, 0x1bc654f0, 0xb0903124, 0x2502a787 &quot;&#182;&#174;&quot;)&lt;br&gt;
&amp;nbsp;&amp;nbsp;[4] 0x19003db1(0, 0x1bc654f0, 0x175fb4ee, 8097)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks for the help</description>
    </item>
    <item>
      <pubDate>Mon, 22 Feb 2010 16:55:10 -0500</pubDate>
      <title>Re: usb-serial error with fclose Mac OS X</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263352#720104</link>
      <author>Nikolas </author>
      <description>I tried this again, with a different USB-Serial device and driver: &lt;a href=&quot;http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v2_2_14.dmg&quot;&gt;http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v2_2_14.dmg&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
And again, I get the same error: segmentation fault re the LibRxTxSerial library</description>
    </item>
    <item>
      <pubDate>Wed, 24 Feb 2010 21:37:39 -0500</pubDate>
      <title>Re: usb-serial error with fclose Mac OS X</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263352#720972</link>
      <author>Nik Ivancevich</author>
      <description>I tried updating the librxtxserial to the newest version from&lt;br&gt;
&lt;a href=&quot;http://rxtx.qbang.org/pub/rxtx/rxtx-2.2pre2.zip&quot;&gt;http://rxtx.qbang.org/pub/rxtx/rxtx-2.2pre2.zip&lt;/a&gt;&lt;br&gt;
and compiled on my machine, replaced the files within Matlab, and get&lt;br&gt;
the same error.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On Feb 22, 11:55&#160;am, &quot;Nikolas &quot; &amp;lt;ivanc...@ucmail.uc.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; I tried this again, with a different USB-Serial device and driver:&lt;a href=&quot;http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v2_2_1...&quot;&gt;http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v2_2_1...&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; And again, I get the same error: segmentation fault re the LibRxTxSerial library</description>
    </item>
    <item>
      <pubDate>Fri, 02 Apr 2010 16:00:23 -0400</pubDate>
      <title>Re: usb-serial error with fclose Mac OS X</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263352#732506</link>
      <author>Craig Williams</author>
      <description>Nik Ivancevich &amp;lt;nik.ivancevich@gmail.com&amp;gt; wrote in message &amp;lt;720dd815-f3b0-447e-9768-1d5ca09a563d@q16g2000yqq.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; I tried updating the librxtxserial to the newest version from&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://rxtx.qbang.org/pub/rxtx/rxtx-2.2pre2.zip&quot;&gt;http://rxtx.qbang.org/pub/rxtx/rxtx-2.2pre2.zip&lt;/a&gt;&lt;br&gt;
&amp;gt; and compiled on my machine, replaced the files within Matlab, and get&lt;br&gt;
&amp;gt; the same error.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; On Feb 22, 11:55&#160;am, &quot;Nikolas &quot; &amp;lt;ivanc...@ucmail.uc.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; I tried this again, with a different USB-Serial device and driver:&lt;a href=&quot;http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v2_2_1...&quot;&gt;http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v2_2_1...&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; And again, I get the same error: segmentation fault re the LibRxTxSerial library&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I am having this same problem.  Everytime I use fclose to close the serial port, matlab crashes.  Was this problem ever resolved?  I could use any advice or help.  Thanks.</description>
    </item>
    <item>
      <pubDate>Mon, 05 Apr 2010 17:30:20 -0400</pubDate>
      <title>Re: usb-serial error with fclose Mac OS X</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263352#733198</link>
      <author>Nik Ivancevich</author>
      <description>Not solved, as far as I know.  I guess calling mathworks is in order.&lt;br&gt;
I'm just living with having to save and quit matlab frequently and&lt;br&gt;
crossing my fingers that I don't crash before saving data.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On Apr 2, 12:00&#160;pm, &quot;Craig Williams&quot; &amp;lt;craig_willi...@baylor.edu&amp;gt;&lt;br&gt;
wrote:&lt;br&gt;
&amp;gt; Nik Ivancevich &amp;lt;nik.ivancev...@gmail.com&amp;gt; wrote in message &amp;lt;720dd815-f3b0-447e-9768-1d5ca09a5...@q16g2000yqq.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; I tried updating the librxtxserial to the newest version from&lt;br&gt;
&amp;gt; &amp;gt;&lt;a href=&quot;http://rxtx.qbang.org/pub/rxtx/rxtx-2.2pre2.zip&quot;&gt;http://rxtx.qbang.org/pub/rxtx/rxtx-2.2pre2.zip&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt; and compiled on my machine, replaced the files within Matlab, and get&lt;br&gt;
&amp;gt; &amp;gt; the same error.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; On Feb 22, 11:55&#160;am, &quot;Nikolas &quot; &amp;lt;ivanc...@ucmail.uc.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I tried this again, with a different USB-Serial device and driver:&lt;a href=&quot;http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v2_2_1...&quot;&gt;http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v2_2_1...&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; And again, I get the same error: segmentation fault re the LibRxTxSerial library&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I am having this same problem. &#160;Everytime I use fclose to close the serial port, matlab crashes. &#160;Was this problem ever resolved? &#160;I could use any advice or help. &#160;Thanks.</description>
    </item>
    <item>
      <pubDate>Sun, 01 May 2011 22:04:04 -0400</pubDate>
      <title>Re: usb-serial error with fclose Mac OS X</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263352#833931</link>
      <author>Julio Cesar </author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
do you guys find a solution for this problem?&lt;br&gt;
&lt;br&gt;
Matlab 2009a&lt;br&gt;
FTDI chip, but the problem is when closing the port&lt;br&gt;
MacOS 10.6.7&lt;br&gt;
&lt;br&gt;
thank you</description>
    </item>
    <item>
      <pubDate>Sun, 09 Oct 2011 04:10:29 -0400</pubDate>
      <title>Re: usb-serial error with fclose Mac OS X</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263352#854514</link>
      <author>Cameron </author>
      <description>Same Issue.  fclose kill MatLab 2009a.  I am using an usb-serial interface with matlabs ArduinoIO library and the fclose, clear all, end of function without passing out the object handle all kill MatLab.&lt;br&gt;
&lt;br&gt;
OSX 10.7.1&lt;br&gt;
&lt;br&gt;
Has anyone has come up with a work around.  While I can still get my code to do what i want it to, it is very annoying to have to keep restarting MatLab&lt;br&gt;
&lt;br&gt;
&quot;Julio Cesar &quot; &amp;lt;ee.jcesar@gmail.com&amp;gt; wrote in message &amp;lt;ipklck$c5b$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; do you guys find a solution for this problem?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Matlab 2009a&lt;br&gt;
&amp;gt; FTDI chip, but the problem is when closing the port&lt;br&gt;
&amp;gt; MacOS 10.6.7&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; thank you</description>
    </item>
  </channel>
</rss>

