<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>LeafLabs Garden &#187; Topic: SerialUSB.print problem with configuration of external serial monitors</title>
		<link>http://forums.leaflabs.com/topic.php?id=202</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:09:46 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=202" rel="self" type="application/rss+xml" />

		<item>
			<title>mbolivar on "SerialUSB.print problem with configuration of external serial monitors"</title>
			<link>http://forums.leaflabs.com/topic.php?id=202&amp;page=2#post-6170</link>
			<pubDate>Thu, 01 Sep 2011 08:45:43 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">6170@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Ok, I've deleted the poster and the post.  Thanks for your continuing vigilance!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "SerialUSB.print problem with configuration of external serial monitors"</title>
			<link>http://forums.leaflabs.com/topic.php?id=202&amp;page=2#post-6136</link>
			<pubDate>Tue, 30 Aug 2011 17:43:01 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">6136@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;mbolivar - I removed the spam signature.&#60;br /&#62;
Someone on the forum suggested that even a day of spam ads was worthwhile for a spammer, so I try to ensure they get as little benefit as practical.&#60;/p&#62;
&#60;p&#62;As you will notice, their message is exactly the same as part of a post. Just delete them.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "SerialUSB.print problem with configuration of external serial monitors"</title>
			<link>http://forums.leaflabs.com/topic.php?id=202&amp;page=2#post-6119</link>
			<pubDate>Mon, 29 Aug 2011 18:23:23 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">6119@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks for the heads-up.  Seems like the offending signature has been edited out.  I suppose we'll assume that means it's a real user who has removed the spam, rather than a bot.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "SerialUSB.print problem with configuration of external serial monitors"</title>
			<link>http://forums.leaflabs.com/topic.php?id=202#post-6102</link>
			<pubDate>Sun, 28 Aug 2011 14:59:12 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">6102@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Cuddeback was posting spam as part of their signature.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "SerialUSB.print problem with configuration of external serial monitors"</title>
			<link>http://forums.leaflabs.com/topic.php?id=202#post-3476</link>
			<pubDate>Thu, 27 Jan 2011 17:55:03 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">3476@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;on the maple, end we use DTR/RTS to determine when sends block and when they dont. This is probably why you needed it for maple but not arduino. This is being changed to a default nonblocking (with blocking enable-able in SerialUSB.begin()) configuration.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "SerialUSB.print problem with configuration of external serial monitors"</title>
			<link>http://forums.leaflabs.com/topic.php?id=202#post-3435</link>
			<pubDate>Sun, 23 Jan 2011 05:46:57 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">3435@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Well done! That sounds truly frustrating.&#60;/p&#62;
&#60;p&#62;Request To Send is an RS232 serial protocol signal. There can be a wire dedicated to carrying that signal. It can be used to manage the flow of data at the hardware level. Interestingly, the FTDI USB to Serial hardware on the old Arduino does implement that signal, but the Arduino's ATmega microcontroller isn't connected to the pin. &#60;/p&#62;
&#60;p&#62;RTS, partnered with Clear To Send (CTS) is so popular for RS232 and serial communications that the FTDI USB to TTL-Serial cables, which only expose 6 signals, include RTS and CTS as two of them (the others are Transmit data, Receive Data, Ground, and Vcc).&#60;/p&#62;
&#60;p&#62;I tried debugging something like this a couple of years ago. I didn't have access to a USB sniffer, but I did have a Mac with DTrace. DTrace lets you see inside programs, including the operating system kernel. I wrote quite a lot of DTrace script to decode the exchanges between a program and a USB device (the host program uses ioctl to manipulate RTS, CTS, baud rate, etc.). Without DTrace, I would have had an impossible time.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JoshSanders on "SerialUSB.print problem with configuration of external serial monitors"</title>
			<link>http://forums.leaflabs.com/topic.php?id=202#post-3430</link>
			<pubDate>Fri, 21 Jan 2011 22:50:45 +0000</pubDate>
			<dc:creator>JoshSanders</dc:creator>
			<guid isPermaLink="false">3430@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I finally figured it out-&#60;/p&#62;
&#60;p&#62;the MATLAB serial object has a field &#34;RequestToSend&#34;, that is off by default.&#60;br /&#62;
Setting this to 'on' makes incoming bytes show up properly.&#60;br /&#62;
It's funny that Serial communication with Arduino doesn't have this issue. . .&#60;br /&#62;
Anyway, problem solved!&#60;br /&#62;
Initialize the serial port from the MATLAB end with this line of code:&#60;br /&#62;
Ser = serial('COM12', 'BaudRate', 9600, 'DataBits', 8, 'Timeout', 3, 'RequestToSend', 'on');&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Josh
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "SerialUSB.print problem with configuration of external serial monitors"</title>
			<link>http://forums.leaflabs.com/topic.php?id=202#post-1476</link>
			<pubDate>Thu, 30 Sep 2010 14:55:47 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">1476@http://forums.leaflabs.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;is the ATmega chip used on the Arduino Mega faster than the ATmega328 used on the Duemilanove/UNO&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;I am 96% confident that the ADC in the ATmega1280 has the same operating parameters as the ATmega328 ADC, so they should take the same amount of time to sample and convert.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "SerialUSB.print problem with configuration of external serial monitors"</title>
			<link>http://forums.leaflabs.com/topic.php?id=202#post-1468</link>
			<pubDate>Thu, 30 Sep 2010 12:03:41 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">1468@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thursday September 30, 2010&#60;/p&#62;
&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I have been using LabVIEW and the Arduino for the last year, so I am very new to computer control of instrumentation and microcontrollers.  I jumped onto the Maple when I saw the improved ADC and the faster clock speed.&#60;/p&#62;
&#60;p&#62;One reason I have not spent a lot of time recently with porting my LabVIEW/Arduino code to the Maple is that &#34;LabVIEW 2009&#34; supports only 1 millisecond time intervals.  It is possible that sub-millisecond control may be available on &#34;LabVIEW Real Time&#34;.  As you may know National Instruments sets their prices on the high side of affordable.&#60;/p&#62;
&#60;p&#62;Josh, I appreciate the need to stick with commercial software for which third parties write toolboxes.  I have not looked myself (being lazy again), but do you know if Octave or the other MATLAB clones support microsecond (ie sub-millisecond) timings?  If I could trigger analog sensor readings every 100 microseconds on the Maple I would be very happy.&#60;/p&#62;
&#60;p&#62;Does MATLAB officially &#34;support&#34; the Arduino, or are you simply using serial communications?&#60;/p&#62;
&#60;p&#62;In your project SerialN may work when SerialUSB fails.  Do NOT use Serial1,  because Serial1 does NOT support CTS and RTS (according to the USART doc page).  However, both Serial2 and Serial3 on the Maple support CTS and RTS.  Unfortunately the USART doc page does not have any code examples.&#60;/p&#62;
&#60;p&#62;Josh, mbolivar said he plans to respond to my questions about the uses of SerialUSB vs SerialN.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=206&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=206&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I do not know if he will have time before IDE 0.0.7 is released, but stay tuned!&#60;/p&#62;
&#60;p&#62;Many problems may eventually disappear if the Maple Rev 6 implements a driverless USB serial model.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=207&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=207&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Josh, I realize the new Arduino UNO is not fast enough for your needs.  However, do you know if the driverless USB serisl model (LUFA?) used by the Uno is compatible with your current MATLAB/Arduino code?  If your Duemilanove/Mega code ports easily to the UNO it may be a reason to be optimistic about Maple Rev 6.&#60;/p&#62;
&#60;p&#62;Josh, is the ATmega chip used on the Arduino Mega faster than the ATmega328 used on the Duemilanove/UNO?  Would this solve your faster ADC needs for B-pod?&#60;/p&#62;
&#60;p&#62;It is users like us who push the limits of the hardware and software which will make the Maple platform more robust for all users.&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;Stephen from NYC
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JoshSanders on "SerialUSB.print problem with configuration of external serial monitors"</title>
			<link>http://forums.leaflabs.com/topic.php?id=202#post-1464</link>
			<pubDate>Thu, 30 Sep 2010 10:07:55 +0000</pubDate>
			<dc:creator>JoshSanders</dc:creator>
			<guid isPermaLink="false">1464@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Ok, lots of questions. I'll do my best.&#60;/p&#62;
&#60;p&#62;How much time have your spent using MATLAB?&#60;br /&#62;
I've used it for systems control and data analysis daily for 4 years.&#60;/p&#62;
&#60;p&#62;Do you have any experience working with MATLAB and other serial devices?&#60;br /&#62;
Yes, I've controlled Arduino and these products:&#60;br /&#62;
&#60;a href=&#34;http://www.pololu.com/catalog/product/1350&#34; rel=&#34;nofollow&#34;&#62;http://www.pololu.com/catalog/product/1350&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.4dsystems.com.au/prod.php?id=79&#34; rel=&#34;nofollow&#34;&#62;http://www.4dsystems.com.au/prod.php?id=79&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://shop.tomsrc.com/product_info.php?cPath=103_154&#38;amp;products_id=645&#34; rel=&#34;nofollow&#34;&#62;http://shop.tomsrc.com/product_info.php?cPath=103_154&#38;amp;products_id=645&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Is this the first MATLAB/Maple program you are developing?&#60;br /&#62;
Yes.&#60;/p&#62;
&#60;p&#62;Does your MATLAB code work on an Arduino?&#60;br /&#62;
Yes. &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://en.wikipedia.org/wiki/Finite-state_machine&#34; rel=&#34;nofollow&#34;&#62;http://en.wikipedia.org/wiki/Finite-state_machine&#60;/a&#62;&#60;br /&#62;
The code is a MATLAB controlled virtual state machine, allowing time stamps for events with sub-millisecond precision unavailable without a real-time OS. Events logged are opening and closing of solenoid valves, LED on and off, timers / scheduled waves ending, sound onset and offset, and more generally, analog values crossing thresholds or digital lines going high or low. Although TCP/IP transmission adds a small amount of temporal jitter, the state machine can also send packets to an IP address on state entry. We use this to control a proprietary $60K odor delivery system that can combine any of 128 monomolecular odorants, and deliver the mixture in pulses accurate to 10ms. The rationale for using the state machine framework is for ease of session protocol development in psychophysics and neuroscience laboratories where neural data is acquired with respect to precisely controlled events.&#60;br /&#62;
An example of this system using $6,000 worth of computers and national instruments cards / cables / breakout boxes (+ a major headache to set up and maintain):&#60;br /&#62;
&#60;a href=&#34;http://brodylab.princeton.edu/bcontrol/index.php/Main_Page&#34; rel=&#34;nofollow&#34;&#62;http://brodylab.princeton.edu/bcontrol/index.php/Main_Page&#60;/a&#62;&#60;br /&#62;
My goal is to create an open, comparable system for less than the cost of an ipod. (I call it project B-pod). It already works on Arduino Mega + ethernet shield - the only limitation is that Arduino takes 100 microseconds to sample an analog channel. Presently, our core setup uses 3 analog inputs (IR photogates) to trigger state changes on threshold crossing and 200us to execute state changes - so I'm still under 1ms. However, in our laboratory, we sometimes use more than 3 photogates and would like to use accelerometers / IMUs in the future to trigger state changes - so we'll need faster analog acquisition. Also, the benefit of 32 bit math will help shave time off state transitions, since all timestamps are long int and we're computing durations on-board to minimize write time over Serial.&#60;/p&#62;
&#60;p&#62;Are you trying to communicate using SerialUSB() or SerialN()?&#60;br /&#62;
I've only used SerialUSB. I'll try SerialN.&#60;/p&#62;
&#60;p&#62;&#34;I agree that using LabVIEW and MATLAB are nice because these apps have mature GUIs.&#34;&#60;br /&#62;
Irrespective of GUI, we use MATLAB for ease of data analysis with the statistics libraries, and for ease of data handling (built-in matrix operations, etc). . . and also for historical reasons. Most science laboratories in the USA use Matlab for instrumentation, with Labview a close second - if you want to collaborate with other scientists on a project, you need a common language. Science would go nowhere if every collaboration started out with &#34;Everything I've done is in Igor Pro, so you'll have to learn that first&#34;. Sadly, the scientific community's shelling point is very expensive, closed source, proprietary software. Rather than be an idealist, I'll stick with it for now, to maximize the benefit of open hardware in the hands of scientists. Encouraging them to learn a new language can come later. I'm thinking python.&#60;/p&#62;
&#60;p&#62;Josh, is CTS/RTS still a problem for you?&#60;br /&#62;
Yes, I haven't found a workaround. Again, my error is:&#60;/p&#62;
&#60;p&#62;&#38;gt;&#38;gt; fwrite(Ser, 'a')&#60;br /&#62;
??? Error using ==&#38;gt; serial.fwrite at 192&#60;br /&#62;
FWRITE cannot be called. The FlowControl property is set to 'hardware' and the Clear To Send (CTS) pin is high. This could indicate that the serial device may not be turned on, may not be connected, or does not use hardware handshaking.&#60;/p&#62;
&#60;p&#62;Can help me with a current problem:?&#60;br /&#62;
I'm also waiting with baited breath for the micros() command to be implemented. Sadly, my area of expertise is Biology - it would take me months to get up to speed with Maple's toolchain under the hood so I can improve the source, so for now I'm just a user =(&#60;/p&#62;
&#60;p&#62;Do you have any experience with these open source alternatives to MatLAB?&#60;br /&#62;
No, our lab is aware of them, Octave being the best contender - however, Octave does not have support for most of the &#34;toolboxes&#34; we use. (i.e. psychophysics toolbox, instrument control toolbox, statistics toolbox, image processing toolbox, etc.)&#60;/p&#62;
&#60;p&#62;Finally, I'll re-iterate the bug I'm stuck on:&#60;br /&#62;
Matlab's Instrument Control Toolbox allows creation of a serial port object which can communicate with Arduino and the other hardware I listed above, but not Maple.&#60;/p&#62;
&#60;p&#62;Thanks guys!&#60;br /&#62;
I'm excited to promote awareness and use of open hardware in the laboratory!&#60;/p&#62;
&#60;p&#62;Josh Sanders&#60;br /&#62;
Kepecs Lab&#60;br /&#62;
Cold Spring Harbor Laboratory&#60;br /&#62;
&#60;a href=&#34;http://kepecslab.cshl.edu/AK_research.html&#34; rel=&#34;nofollow&#34;&#62;http://kepecslab.cshl.edu/AK_research.html&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "SerialUSB.print problem with configuration of external serial monitors"</title>
			<link>http://forums.leaflabs.com/topic.php?id=202#post-1463</link>
			<pubDate>Thu, 30 Sep 2010 08:17:40 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">1463@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thursday September 30, 2010&#60;/p&#62;
&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;gbulmer, thanks for the Scratch referral.  I had it bookmarked, but I never tried the software.  Scratch works on Win/Mac OS/Linux.  That is a great plus.  I am glad Scratch supports Mac OS &#34;Tiger&#34; (10.4).  A friend recommend GameMaker (released by yoyogames), but they do not support Mac OS 10.4.  It is nice when educational software supports older systems, because you never know who is running what at home.  If software requires the most recent OS version it prevents some students from writing programs at home.  The digital divide once again.&#60;/p&#62;
&#60;p&#62;I have not tried at Octave, SciLab, or FreeMat.  From what I have read they differ in their compatibility with MatLAB.  I do not know anything about their support of serial communications.&#60;/p&#62;
&#60;p&#62;JoshSanders and snigelen, do you have any experience with these open source alternatives to MatLAB?  How easy is it to develop applications which can communicate with micrcontrollers such as the Maple?&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;Stephen from NYC
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "SerialUSB.print problem with configuration of external serial monitors"</title>
			<link>http://forums.leaflabs.com/topic.php?id=202#post-1431</link>
			<pubDate>Tue, 28 Sep 2010 20:32:50 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">1431@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;StephenFromNYC:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;gbulmer, when you work with your students do visual GUIs help them stay interested and connected to the projects? At what age do your students begin using data files in their programming projects? Do you use Processing with your students or another app? I am asking because I was asked to recommend a programming environment for children (ages 10+).&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;I deliberately chose to build simple robots, to get them interested, so their 'GUI' is physical atoms, not pixels :-)&#60;br /&#62;
My school students are 14 to 16. Part of the reason I run the workshops for schools is to give them a broader understanding of what they could do with technology while they are young enough to adjust their career and educational paths, but old enough that there are fewer health and safety issues (13 or younger is a different set of laws).&#60;/p&#62;
&#60;p&#62;I have tried to side step the issue of a GUI in the past by showing them how to use Serial.print to create text in the serial monitor which they &#34;paste&#34; into Excel to get graphs. One student is very adept at this, and gets some great results.&#60;/p&#62;
&#60;p&#62;I am now planning to take a friends 'Arduino-scope' written in Processing and use that for some things. Clearly, a MatLab/LabView system would be nice, but it has to be free.&#60;/p&#62;
&#60;p&#62;I have written drivers which run on the Arduino which implements some of the physical computing board protocols for Scratch. I haven't made time to do as much with this as I had intended, but I do hope to move things along further before the end of this year. &#60;/p&#62;
&#60;p&#62;I have designed and written more advanced physical computing interfaces, running on Arduino, for a fork of Scratch, but when I have emailed MIT (Leah Buechley) about supporting them in future Scratch developments (there is a huge set of changes coming) I got no response, so I am on hold with that area.&#60;/p&#62;
&#60;p&#62;Does that help?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "SerialUSB.print problem with configuration of external serial monitors"</title>
			<link>http://forums.leaflabs.com/topic.php?id=202#post-1421</link>
			<pubDate>Tue, 28 Sep 2010 10:50:09 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">1421@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Tuesday September 28, 2010&#60;/p&#62;
&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;Josh, once again, as a &#34;still learning&#34; LabVIEW programmer I am excited to hear about your MATLAB/Maple project.  In full disclosure, I started working with Arduino Duemilanove in late 2009 and with the Maple (Rev 3 and IDE-0.0.6) this summer.&#60;/p&#62;
&#60;p&#62;How much time have your spent using MATLAB?  Do you have any experience working with MATLAB and other serial devices?  Is this the first MATLAB/Maple program you are developing?  Does your MATLAB code work on an Arduino?&#60;/p&#62;
&#60;p&#62;Are you trying to communicate using SerialUSB() or SerialN()?&#60;/p&#62;
&#60;p&#62;I am happy to share some ideas about working with LabVIEW and microcontrollers (both the Arduino and Maple) and serial communications over the USB wire (using the FTDI USB-serial driver for the Arduino and the SerialUSB functions for the Maple).  I have minimal experience with MATLAB, so I do not know if my suggestions are transferrable to your MATLAB project.&#60;/p&#62;
&#60;p&#62;I agree that using LabVIEW and MATLAB are nice because these apps have mature GUIs.  This is very helpful if a client rolls eyes when given a data file (even when developing a simple command line program would answer the question much faster and therefore be a cheaper solution for the client).&#60;/p&#62;
&#60;p&#62;gbulmer, when you work with your students do visual GUIs help them stay interested and connected to the projects?  At what age do your students begin using data files in their programming projects?  Do you use Processing with your students or another app?  I am asking because I was asked to recommend a programming environment for children (ages 10+).&#60;/p&#62;
&#60;p&#62;Using LabVIEW with the Arduino/Maple would be easier if compatible drivers were available.  However, a &#34;standard&#34; driver does not exist.&#60;/p&#62;
&#60;p&#62;In developing my LabVIEW/Arduino code I first created Arduino code which would talk to a simple serial terminal program such as HyperTerminal.  Then I replaced the terminal program using Processing.  This extra step with Processing was necessary to convince me that my Arduino code was working as expected at a higher rate.  Using a terminal program I could not send commands to the microcontroller faster than 2X-3X a second.  When both HyperTerminal and Processing worked I created the LabVIEW code.  I used LabVIEW, because I wanted a more polished way to quickly graph my data.&#60;/p&#62;
&#60;p&#62;Does Processing work well with the Maple?  On this forum very few people discuss Processing.  One exception:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=197#post-1362&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=197#post-1362&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Josh, is CTS/RTS still a problem for you?  You asked if it could be turned off.  According to the USART page of docs the Maple does not use CTS/RTS (clear to send/ready to send) on Serial1 (but it does on Serial2 and Serial3).&#60;/p&#62;
&#60;p&#62;Is there a reason why Serial1 does not implement CTS/RTS.  Is there a reason why SerialUSB does not implement CTS/RTS?&#60;/p&#62;
&#60;p&#62;Josh, I am glad my DTR/RTS suggestion worked so well on Termite.  I do not know if you, in return, can help me with a current problem:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=86&#38;amp;page=2#post-1420&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=86&#38;amp;page=2#post-1420&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks for your time!&#60;/p&#62;
&#60;p&#62;Stephen from NYC
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JoshSanders on "SerialUSB.print problem with configuration of external serial monitors"</title>
			<link>http://forums.leaflabs.com/topic.php?id=202#post-1405</link>
			<pubDate>Fri, 24 Sep 2010 10:59:33 +0000</pubDate>
			<dc:creator>JoshSanders</dc:creator>
			<guid isPermaLink="false">1405@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;There is an option to change the &#34;flow control&#34; property of a MATLAB serial port object to the setting &#34;hardware&#34; (default = &#34;none&#34;). &#60;/p&#62;
&#60;p&#62;According to the MATLAB documentation, this will use RTS/CTS. DTR/DSR is unsupported.&#60;/p&#62;
&#60;p&#62;I get the following error when I try to write a byte to the Serial port:&#60;/p&#62;
&#60;p&#62;'&#60;br /&#62;
&#38;gt;&#38;gt; fwrite(Ser, 'a')&#60;br /&#62;
??? Error using ==&#38;gt; serial.fwrite at 192&#60;br /&#62;
FWRITE cannot be called. The FlowControl property is set to 'hardware' and the Clear To Send (CTS) pin is high. This could indicate that the serial device may not be turned on, may not be connected, or does not use hardware handshaking.&#60;br /&#62;
'&#60;/p&#62;
&#60;p&#62;The RTS/CTS setting in Termite works fine. . . I imagine the problem is probably a quirk on the MATLAB end, so I'll try to figure it out. In the meantime, is there a way to disable flow control on the Maple end to facilitate porting Arduino code in the future?&#60;/p&#62;
&#60;p&#62;Sorry if I'm trivializing this - I'm still a newbie &#38;amp; ignorant of what it would take to do this =)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>snigelen on "SerialUSB.print problem with configuration of external serial monitors"</title>
			<link>http://forums.leaflabs.com/topic.php?id=202#post-1404</link>
			<pubDate>Fri, 24 Sep 2010 10:51:19 +0000</pubDate>
			<dc:creator>snigelen</dc:creator>
			<guid isPermaLink="false">1404@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I haven't tested but I guess something like this wold work in Matlab:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;s = serial(&#38;#39;/dev/ttyACM0&#38;#39;);
s.FlowControl = &#38;#39;hardware&#38;#39;;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
