<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Python to Arduino connection problem]]></title><description><![CDATA[<p dir="auto">I’m new to both Python and Notepad++ so my apologies in advance if this a simple fix. I’m using a simple sketch running on the Arduino that’s looping a counter and outputting a string through the serial port (COM3). In Python the script is monitoring that serial port for activity and printing the strings as they come in. If I run the script in VIDLE it works perfectly and I see the strings come across immediately. If I run it in the Notepad console I’ll get the  Python initialization and then it stays blank for about 60 seconds and then I’ll see a burst of about 60 strings and then it halts. Another 60 seconds goes by then another burst. It seems like in Notepad the COM3 port is “clogged” then it just opens up for a brief second then shuts down again. Or maybe something else completed different. Anyone have an idea as to what;s happening here?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/11463/python-to-arduino-connection-problem</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 22:52:10 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/11463.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Mar 2016 17:33:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Python to Arduino connection problem on Mon, 14 Mar 2016 19:30:31 GMT]]></title><description><![CDATA[<p dir="auto">Baddabing!  The -u solved the problem. Thanks Claudia!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14712</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14712</guid><dc:creator><![CDATA[Michael Williams]]></dc:creator><pubDate>Mon, 14 Mar 2016 19:30:31 GMT</pubDate></item><item><title><![CDATA[Reply to Python to Arduino connection problem on Mon, 14 Mar 2016 19:02:59 GMT]]></title><description><![CDATA[<p dir="auto">Hello Michael,</p>
<p dir="auto">just for your information, nppexecs console is not really a console like the cmd.<br />
It tries to behave the same but it isn’t.<br />
Regarding your problem, I assume you have to call python with -u switch to get<br />
unbuffered results like</p>
<pre><code> C:\Python27\python.exe -u "$(FILE_NAME)"
</code></pre>
<p dir="auto">or you might override pythons sys.stdout with an unbuffered version. But I would give<br />
the -u switch the first try.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14711</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14711</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Mon, 14 Mar 2016 19:02:59 GMT</pubDate></item><item><title><![CDATA[Reply to Python to Arduino connection problem on Mon, 14 Mar 2016 18:36:05 GMT]]></title><description><![CDATA[<p dir="auto">Claudia,</p>
<p dir="auto">The NppExec plugin has a “Show Console” option where you’re provided a console screen in NotePad to view the script running. NppExec also has an Execute option where you can input the following:</p>
<p dir="auto">cd “$(CURRENT_DIRECTORY)”<br />
C:\Python27\python.exe  “$(FILE_NAME)”</p>
<p dir="auto">Then you can assign a macro to run this Execute command on the active script.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14710</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14710</guid><dc:creator><![CDATA[Michael Williams]]></dc:creator><pubDate>Mon, 14 Mar 2016 18:36:05 GMT</pubDate></item><item><title><![CDATA[Reply to Python to Arduino connection problem on Mon, 14 Mar 2016 17:53:08 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-williams" aria-label="Profile: Michael-Williams">@<bdi>Michael-Williams</bdi></a>,</p>
<p dir="auto">what do you mean by notepad++ console?<br />
How do you execute your python script?</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14709</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14709</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Mon, 14 Mar 2016 17:53:08 GMT</pubDate></item></channel></rss>