<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Serial Port communications on Mac via Matlab</title>
	<atom:link href="http://blog.newsyland.com/original/serial-port-communications-on-mac-via-matlab/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.newsyland.com/mac-os-x/serial-port-communications-on-mac-via-matlab</link>
	<description>tail -f /dev/brain &#62;&#62; blog.newsyland.com</description>
	<lastBuildDate>Tue, 02 Feb 2010 16:08:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Kirk Ireson</title>
		<link>http://blog.newsyland.com/mac-os-x/serial-port-communications-on-mac-via-matlab/comment-page-1#comment-14</link>
		<dc:creator>Kirk Ireson</dc:creator>
		<pubDate>Sat, 28 Mar 2009 01:22:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/uncategorized/serial-port-communications-on-mac-via-matlab#comment-14</guid>
		<description>Are you using a Mac?  If you are using a PC, you should be able to use something like: s = serial(&#039;COM1&#039;,&#039;BaudRate&#039;,4800);

Did you follow the directions above?

Are you using the correct baud rate, parity, stop bits, etc.?  This should be documented in your controller manual.

Where are you having problems? What kind of errors are you getting?

You may want to check out the Serial-IO.doc document here:
http://www.mathworks.com/matlabcentral/files/8311/Serial%20IO.zip</description>
		<content:encoded><![CDATA[<p>Are you using a Mac?  If you are using a PC, you should be able to use something like: s = serial(&#8216;COM1&#8242;,&#8217;BaudRate&#8217;,4800);</p>
<p>Did you follow the directions above?</p>
<p>Are you using the correct baud rate, parity, stop bits, etc.?  This should be documented in your controller manual.</p>
<p>Where are you having problems? What kind of errors are you getting?</p>
<p>You may want to check out the Serial-IO.doc document here:<br />
<a href="http://www.mathworks.com/matlabcentral/files/8311/Serial%20IO.zip" rel="nofollow">http://www.mathworks.com/matlabcentral/files/8311/Serial%20IO.zip</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sushmita</title>
		<link>http://blog.newsyland.com/mac-os-x/serial-port-communications-on-mac-via-matlab/comment-page-1#comment-13</link>
		<dc:creator>sushmita</dc:creator>
		<pubDate>Fri, 27 Mar 2009 16:19:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/uncategorized/serial-port-communications-on-mac-via-matlab#comment-13</guid>
		<description>I am doing my project using Matlab2008a. I am using simulink blocks for designing my model. I have flashed the program i got from my model in PIC18F4550 since it supports USB. i am giving my inputs using controller to the PC. so iam interfacing it using USB. Can u please help me in giving the M file for the matlab to accept the data from controller.</description>
		<content:encoded><![CDATA[<p>I am doing my project using Matlab2008a. I am using simulink blocks for designing my model. I have flashed the program i got from my model in PIC18F4550 since it supports USB. i am giving my inputs using controller to the PC. so iam interfacing it using USB. Can u please help me in giving the M file for the matlab to accept the data from controller.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie</title>
		<link>http://blog.newsyland.com/mac-os-x/serial-port-communications-on-mac-via-matlab/comment-page-1#comment-12</link>
		<dc:creator>Charlie</dc:creator>
		<pubDate>Wed, 15 Oct 2008 14:55:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/uncategorized/serial-port-communications-on-mac-via-matlab#comment-12</guid>
		<description>Hi there!

I&#039;ve succesfully (but not easily) installed rxtx on a Intel iMac (2,4GHz Core 2 Duo, 10.4.11). I managed to use it with Matlab R2007a.

Charlie C.</description>
		<content:encoded><![CDATA[<p>Hi there!</p>
<p>I&#8217;ve succesfully (but not easily) installed rxtx on a Intel iMac (2,4GHz Core 2 Duo, 10.4.11). I managed to use it with Matlab R2007a.</p>
<p>Charlie C.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M A Hopcroft</title>
		<link>http://blog.newsyland.com/mac-os-x/serial-port-communications-on-mac-via-matlab/comment-page-1#comment-11</link>
		<dc:creator>M A Hopcroft</dc:creator>
		<pubDate>Wed, 20 Aug 2008 01:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/uncategorized/serial-port-communications-on-mac-via-matlab#comment-11</guid>
		<description>There is a similar toolbox called comm here:
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=4952

BUT, there is another way. MATLAB uses the code from the rxtx project (rxtx.org) for its serial port interface for Windows and Linux. This same code can also be compiled for OS X, although it has only recently become stable enough to use. I suspect it will eventually be included in MATLAB. In the meantime, you can do it yourself, if you are not afraid of the terminal:

1) Install the latest version (2.1-8) from rxtx.org. This requires getting the code through cvs.
2) Install your preferred USB-to-serial kernel extension (I am using the FTDI driver for a Prologix USB controller).
3) Open the included m-file &quot;serial.m&quot; and comment out the lines that check to see if you are using a Mac (lines 56-58).

Restart the computer, plug in USB device, start MATLAB. You can now use the &quot;tmtool&quot; and &quot;serial&quot; commands like a normal MATLAB user.
For example:

&gt;&gt; tmtool
&gt;&gt; io=serial(&#039;/dev/tty.usbserial-PXQDOOHN&#039;)

   Serial Port Object : Serial-/dev/tty.usbserial-PXQDOOHN

   Communication Settings
      Port:               /dev/tty.usbserial-PXQDOOHN
      BaudRate:           9600
      Terminator:         &#039;LF&#039;

   Communication State
      Status:             closed
      RecordStatus:       off

   Read/Write State
      TransferStatus:     idle
      BytesAvailable:     0
      ValuesReceived:     0
      ValuesSent:         0

&gt;&gt;

Pretty cool... I&#039;m using MATLAB 2007b on Intel Mac, 10.5.4. I don&#039;t pretend it was easy, and I have no idea if it will work on any other system/versions. Good luck!</description>
		<content:encoded><![CDATA[<p>There is a similar toolbox called comm here:<br />
<a href="http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=4952" rel="nofollow">http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=4952</a></p>
<p>BUT, there is another way. MATLAB uses the code from the rxtx project (rxtx.org) for its serial port interface for Windows and Linux. This same code can also be compiled for OS X, although it has only recently become stable enough to use. I suspect it will eventually be included in MATLAB. In the meantime, you can do it yourself, if you are not afraid of the terminal:</p>
<p>1) Install the latest version (2.1-8) from rxtx.org. This requires getting the code through cvs.<br />
2) Install your preferred USB-to-serial kernel extension (I am using the FTDI driver for a Prologix USB controller).<br />
3) Open the included m-file &#8220;serial.m&#8221; and comment out the lines that check to see if you are using a Mac (lines 56-58).</p>
<p>Restart the computer, plug in USB device, start MATLAB. You can now use the &#8220;tmtool&#8221; and &#8220;serial&#8221; commands like a normal MATLAB user.<br />
For example:</p>
<p>&gt;&gt; tmtool<br />
&gt;&gt; io=serial(&#8216;/dev/tty.usbserial-PXQDOOHN&#8217;)</p>
<p>   Serial Port Object : Serial-/dev/tty.usbserial-PXQDOOHN</p>
<p>   Communication Settings<br />
      Port:               /dev/tty.usbserial-PXQDOOHN<br />
      BaudRate:           9600<br />
      Terminator:         &#8216;LF&#8217;</p>
<p>   Communication State<br />
      Status:             closed<br />
      RecordStatus:       off</p>
<p>   Read/Write State<br />
      TransferStatus:     idle<br />
      BytesAvailable:     0<br />
      ValuesReceived:     0<br />
      ValuesSent:         0</p>
<p>&gt;&gt;</p>
<p>Pretty cool&#8230; I&#8217;m using MATLAB 2007b on Intel Mac, 10.5.4. I don&#8217;t pretend it was easy, and I have no idea if it will work on any other system/versions. Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirk Ireson</title>
		<link>http://blog.newsyland.com/mac-os-x/serial-port-communications-on-mac-via-matlab/comment-page-1#comment-10</link>
		<dc:creator>Kirk Ireson</dc:creator>
		<pubDate>Thu, 03 Jul 2008 01:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/uncategorized/serial-port-communications-on-mac-via-matlab#comment-10</guid>
		<description>Actually, no. What we did instead is chose to use &lt;a href=&quot;http://homepage.mac.com/dalverson/zterm/&quot; rel=&quot;nofollow&quot;&gt;ZTerm&lt;/a&gt;. Using it, you can go &quot;File&quot;&#8594;&quot;Start capture&quot;, and spool the serial port data to a file.</description>
		<content:encoded><![CDATA[<p>Actually, no. What we did instead is chose to use <a href="http://homepage.mac.com/dalverson/zterm/" rel="nofollow">ZTerm</a>. Using it, you can go &#8220;File&#8221;&rarr;&#8221;Start capture&#8221;, and spool the serial port data to a file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ming</title>
		<link>http://blog.newsyland.com/mac-os-x/serial-port-communications-on-mac-via-matlab/comment-page-1#comment-9</link>
		<dc:creator>Ming</dc:creator>
		<pubDate>Wed, 02 Jul 2008 22:00:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/uncategorized/serial-port-communications-on-mac-via-matlab#comment-9</guid>
		<description>Hello, did you ever get it to work with a serial-to-usb convertor? I keep getting the error message &#039;SERIALCOMM(&#039;OPEN&#039;): could not open port&#039;. If you know how to fix it, please let me know. Thanks!</description>
		<content:encoded><![CDATA[<p>Hello, did you ever get it to work with a serial-to-usb convertor? I keep getting the error message &#8216;SERIALCOMM(&#8216;OPEN&#8217;): could not open port&#8217;. If you know how to fix it, please let me know. Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
