<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://code.msdn.microsoft.com/rss.xsl"?><rss version="2.0"><channel><title>NXTWorkflow</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Project/ProjectRss.aspx</link><description>This sample demonstrates how you can use Windows Workflow Foundation to remote control a Lego &amp;#40;R&amp;#41; Mindstorms &amp;#40;R&amp;#41; NXT robot through a Bluetooth connection. It includes a console driver program, as w...</description><item><title>NEW POST: General</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Thread/View.aspx?ThreadId=169</link><description>&lt;div class="wikidoc"&gt;
Just posted the updated version with the sensor while activity. There are still a few issues to solve in the way the Move &amp;amp; Motor blocks work, but at least you can have your robot interact with its environment now.&lt;br /&gt;
&lt;/div&gt;</description><author>Lorenh</author><pubDate>Fri, 14 Mar 2008 04:42:02 GMT</pubDate><guid isPermaLink="false">NEW POST: General 20080314A</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Wiki/View.aspx?title=Home&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
NXT Workflow Sample
&lt;/h1&gt; &lt;br /&gt;This sample demonstrates how you can use Windows Workflow Foundation to remote control a Lego (R) Mindstorms (R) NXT robot through a Bluetooth connection. It includes a console driver program, as well as a Winforms based application that hosts the Workflow designer. The designer hosted version is based on the excellent MSDN hosting example by Vihang Dalal found at &lt;a href="http://msdn2.microsoft.com/en-us/library/aa480213.aspx" class="externalLink"&gt;http://msdn2.microsoft.com/en-us/library/aa480213.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. The bluetooth communication uses a wrapper called NXT# written by Bram Fokke at &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;Screenshot of the controller application:&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1111" alt="nxtcontroller-winform2.png" /&gt;&lt;br /&gt; &lt;br /&gt;&lt;i&gt;New in version 1.0.0.1&lt;/i&gt; There is a while activity that loops until a sensor crosses a threshold. For example, this program enables a robot to find its way out of a room using a touch sensor attached to its front. Whenever it touches an obstruction it backs up, turns and goes forward again.&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1216" alt="whileworkflow.png" /&gt;&lt;br /&gt; &lt;br /&gt;The NXT robot I used for this application:&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1109" alt="IMG_4619.jpg" /&gt;&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;This sample was developed using Visual Studio 2008 and targets the .NET 3.5 framework, although with a few modifications it could easily be converted back to a .NET 3.0 / Visual Studio 2005 project if required.&lt;br /&gt; &lt;br /&gt;It was developed simply to learn how to work with Windows Workflow Foundation, and as such, is only a proof of concept,&lt;br /&gt;and incomplete. But the basic idea could be expanded upon by someone with more time.&lt;br /&gt; &lt;br /&gt;The NxtActivities project currently has only two workflow activities to control motor ports. Eventually this could be expanded to include input activities to read and react to the state of the various input sensors, but this part of the sample remains to be completed.&lt;br /&gt; &lt;br /&gt;The two activities are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Motor&lt;/b&gt; - Control one output port (example: run motor A for 2 seconds on power 100)&lt;/li&gt;&lt;li&gt;&lt;b&gt;Move&lt;/b&gt; - Control two output ports in sync (example: move a robot with two drive motors in a straight line for 10 seconds on power 100)&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Prerequisites
&lt;/h2&gt;This project uses the excellent NXT# which can be found here &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;In order to build it you must first download &lt;b&gt;NxtSharp.binaries.zip&lt;/b&gt; from the download section.and place the latest version of these two&lt;br /&gt;assemblies in the lib folder:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Bram.Utilities.dll&lt;/li&gt;&lt;li&gt;Bram.NxtSharp.dll&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;This sample was developed using version 0.3 of NXT#.&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
Contents
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;lib&lt;/b&gt; - External dependencies, place the two NXT# assemblies here&lt;/li&gt;&lt;li&gt;&lt;b&gt;NxtActivities&lt;/b&gt; - The activities library containing the two activities, and  various workflow helper classes.&lt;/li&gt;&lt;li&gt;&lt;b&gt;NxtController&lt;/b&gt; - The Winform application that hosts the workflow designer&lt;/li&gt;&lt;li&gt;&lt;b&gt;NxtControllerConsole&lt;/b&gt; - The sample console controller&lt;/li&gt;&lt;li&gt;&lt;b&gt;WorkflowDesignerControl&lt;/b&gt; - A control that simplifies the designer hosting&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Instructions
&lt;/h2&gt;Console version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtControllerConsole as your startup project&lt;/li&gt;&lt;li&gt;In the NxtControllerConsole project, modify this line in Program.cs to use the correct COM port NxtWorkflowRunner runner = new NxtWorkflowRunner(&amp;quot;COM8&amp;quot;);&lt;/li&gt;&lt;li&gt;Inspect Workflow1.cs to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Run.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Winform version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtController as your startup project&lt;/li&gt;&lt;li&gt;Run the app, use the Tools | Options menu to set the COM port&lt;/li&gt;&lt;li&gt;Use the File | Open... menu to open ....\NxtController\Workflows\Workflow3.xoml&lt;/li&gt;&lt;li&gt;Inspect the workflow to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Press the green play button on the toolbar.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;--Loren Halvorson&lt;br /&gt; &lt;br /&gt;My Blog can be found at &lt;a href="http://weblogs.asp.net/lorenh" class="externalLink"&gt;http://weblogs.asp.net/lorenh&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>Lorenh</author><pubDate>Fri, 14 Mar 2008 04:38:55 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080314A</guid></item><item><title>CREATED RELEASE: 1.0.0.1 (Mar 13, 2008)</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Release/ProjectReleases.aspx?ReleaseId=662</link><description>Added the NxtWhileActivity which loops until an input sensor crosses a threshold. You can do things like make a robot find its way out of a room using a touch sensor on the front. See Workflow1.cs in the console app, and Workflow4.xoml in the Workflows folder of the WinForms project for examples. Also added the ability to read &amp;#42;.rules files in the WinForms app.</description><author></author><pubDate>Fri, 14 Mar 2008 04:34:21 GMT</pubDate><guid isPermaLink="false">CREATED RELEASE: 1.0.0.1 (Mar 13, 2008) 20080314A</guid></item><item><title>NEW POST: General</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Thread/View.aspx?ThreadId=169</link><description>&lt;div class="wikidoc"&gt;
Soon I hope to release a version that includes a sensor while activity.  This will allow you to do something repeatedly until a sensor reaches a threshold value. (For example, go forward until a touch sensor is pressed).  This will enable much more interesting NXT workflows.&lt;br /&gt;
&lt;/div&gt;</description><author>Lorenh</author><pubDate>Thu, 13 Mar 2008 19:21:05 GMT</pubDate><guid isPermaLink="false">NEW POST: General 20080313P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Wiki/View.aspx?title=Home&amp;version=13</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
NXT Workflow Sample
&lt;/h1&gt; &lt;br /&gt;This sample demonstrates how you can use Windows Workflow Foundation to remote control a Lego (R) Mindstorms (R) NXT robot through a Bluetooth connection. It includes a console driver program, as well as a Winforms based application that hosts the Workflow designer. The designer hosted version is based on the excellent MSDN hosting example by Vihang Dalal found at &lt;a href="http://msdn2.microsoft.com/en-us/library/aa480213.aspx" class="externalLink"&gt;http://msdn2.microsoft.com/en-us/library/aa480213.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. The bluetooth communication uses a wrapper called NXT# written by Bram Fokke at &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;Screenshot of the controller application:&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1111" alt="nxtcontroller-winform2.png" /&gt;&lt;br /&gt; &lt;br /&gt;The NXT robot I used for this application:&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1109" alt="IMG_4619.jpg" /&gt;&lt;br /&gt; &lt;br /&gt;This sample was developed using Visual Studio 2008 and targets the .NET 3.5 framework, although with a few modifications it could easily be converted back to a .NET 3.0 / Visual Studio 2005 project if required.&lt;br /&gt; &lt;br /&gt;It was developed simply to learn how to work with Windows Workflow Foundation, and as such, is only a proof of concept,&lt;br /&gt;and incomplete. But the basic idea could be expanded upon by someone with more time.&lt;br /&gt; &lt;br /&gt;The NxtActivities project currently has only two workflow activities to control motor ports. Eventually this could be expanded to include input activities to read and react to the state of the various input sensors, but this part of the sample remains to be completed.&lt;br /&gt; &lt;br /&gt;The two activities are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Motor&lt;/b&gt; - Control one output port (example: run motor A for 2 seconds on power 100)&lt;/li&gt;&lt;li&gt;&lt;b&gt;Move&lt;/b&gt; - Control two output ports in sync (example: move a robot with two drive motors in a straight line for 10 seconds on power 100)&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Prerequisites
&lt;/h2&gt;This project uses the excellent NXT# which can be found here &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;In order to build it you must first download &lt;b&gt;NxtSharp.binaries.zip&lt;/b&gt; from the download section.and place the latest version of these two&lt;br /&gt;assemblies in the lib folder:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Bram.Utilities.dll&lt;/li&gt;&lt;li&gt;Bram.NxtSharp.dll&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;This sample was developed using version 0.3 of NXT#.&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
Contents
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;lib&lt;/b&gt; - External dependencies, place the two NXT# assemblies here&lt;/li&gt;&lt;li&gt;&lt;b&gt;NxtActivities&lt;/b&gt; - The activities library containing the two activities, and  various workflow helper classes.&lt;/li&gt;&lt;li&gt;&lt;b&gt;NxtController&lt;/b&gt; - The Winform application that hosts the workflow designer&lt;/li&gt;&lt;li&gt;&lt;b&gt;NxtControllerConsole&lt;/b&gt; - The sample console controller&lt;/li&gt;&lt;li&gt;&lt;b&gt;WorkflowDesignerControl&lt;/b&gt; - A control that simplifies the designer hosting&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Instructions
&lt;/h2&gt;Console version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtControllerConsole as your startup project&lt;/li&gt;&lt;li&gt;In the NxtControllerConsole project, modify this line in Program.cs to use the correct COM port NxtWorkflowRunner runner = new NxtWorkflowRunner(&amp;quot;COM8&amp;quot;);&lt;/li&gt;&lt;li&gt;Inspect Workflow1.cs to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Run.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Winform version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtController as your startup project&lt;/li&gt;&lt;li&gt;Run the app, use the Tools | Options menu to set the COM port&lt;/li&gt;&lt;li&gt;Use the File | Open... menu to open ....\NxtController\Workflows\Workflow3.xoml&lt;/li&gt;&lt;li&gt;Inspect the workflow to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Press the green play button on the toolbar.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;--Loren Halvorson&lt;br /&gt; &lt;br /&gt;My Blog can be found at &lt;a href="http://weblogs.asp.net/lorenh" class="externalLink"&gt;http://weblogs.asp.net/lorenh&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>Lorenh</author><pubDate>Thu, 06 Mar 2008 21:03:21 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080306P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Wiki/View.aspx?title=Home&amp;version=12</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
NXT Workflow Sample
&lt;/h1&gt; &lt;br /&gt;This sample demonstrates how you can use Windows Workflow Foundation to remote control a Lego (R) Mindstorms (R) NXT robot through a Bluetooth connection. It includes a console driver program, as well as a Winforms based application that hosts the Workflow designer. The designer hosted version is based on the excellent MSDN hosting example by Vihang Dalal found at &lt;a href="http://msdn2.microsoft.com/en-us/library/aa480213.aspx" class="externalLink"&gt;http://msdn2.microsoft.com/en-us/library/aa480213.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. The bluetooth communication uses a wrapper called NXT# written by Bram Fokke at &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;Screenshot of the controller application:&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1111" alt="nxtcontroller-winform2.png" /&gt;&lt;br /&gt; &lt;br /&gt;The NXT robot I used for this application:&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1109" alt="IMG_4619.jpg" /&gt;&lt;br /&gt; &lt;br /&gt;This sample was developed using Visual Studio 2008 and targets the .NET 3.5 framework, although with a few modifications it could easily be converted back to a .NET 3.0 / Visual Studio 2005 project if required.&lt;br /&gt; &lt;br /&gt;It was developed simply to learn how to work with Windows Workflow Foundation, and as such, is only a proof of concept,&lt;br /&gt;and incomplete. But the basic idea could be expanded upon by someone with more time.&lt;br /&gt; &lt;br /&gt;The NxtActivities project currently has only two workflow activities to control motor ports. Eventually this could be expanded to include input activities to read and react to the state of the various input sensors, but this part of the sample remains to be completed.&lt;br /&gt; &lt;br /&gt;The two activities are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Motor&lt;/b&gt; - Control one output port (example: run motor A for 2 seconds on power 100)&lt;/li&gt;&lt;li&gt;&lt;b&gt;Move&lt;/b&gt; - Control two output ports in sync (example: move a robot with two drive motors in a straight line for 10 seconds on power 100)&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Prerequisites
&lt;/h2&gt;This project uses the excellent NXT# which can be found here &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;In order to build it you must first download &lt;b&gt;NxtSharp.binaries.zip&lt;/b&gt; from the download section.and place the latest version of these two&lt;br /&gt;assemblies in the lib folder:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Bram.Utilities.dll&lt;/li&gt;&lt;li&gt;Bram.NxtSharp.dll&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;This sample was developed using version 0.3 of NXT#.&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
Contents
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;lib&lt;/b&gt; - External dependencies, place the two NXT# assemblies here&lt;/li&gt;&lt;li&gt;&lt;b&gt;NxtActivities&lt;/b&gt; - The activities library containing the two activities, and  various workflow helper classes.&lt;/li&gt;&lt;li&gt;&lt;b&gt;NxtController&lt;/b&gt; - The Winform application that hosts the workflow designer&lt;/li&gt;&lt;li&gt;&lt;b&gt;NxtControllerConsole&lt;/b&gt; - The sample console controller&lt;/li&gt;&lt;li&gt;&lt;b&gt;WorkflowDesignerControl&lt;/b&gt; - A control that simplifies the designer hosting&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Instructions
&lt;/h2&gt;Console version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtControllerConsole as your startup project&lt;/li&gt;&lt;li&gt;In the NxtControllerConsole project, modify this line in Program.cs to use the correct COM port NxtWorkflowRunner runner = new NxtWorkflowRunner(&amp;quot;COM8&amp;quot;);&lt;/li&gt;&lt;li&gt;Inspect Workflow1.cs to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Run.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Winform version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtController as your startup project&lt;/li&gt;&lt;li&gt;Run the app, use the Tools | Options menu to set the COM port&lt;/li&gt;&lt;li&gt;Use the File | Open... menu to open ....\NxtController\Workflows\Workflow3.xoml&lt;/li&gt;&lt;li&gt;Inspect the workflow to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Press the green play button on the toolbar.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>Lorenh</author><pubDate>Thu, 06 Mar 2008 20:53:40 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080306P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Wiki/View.aspx?title=Home&amp;version=11</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
NXT Workflow Sample
&lt;/h1&gt; &lt;br /&gt;This sample demonstrates how you can use Windows Workflow Foundation to remote control a Lego (R) Mindstorms (R) NXT robot through a Bluetooth connection. It includes a console driver program, as well as a Winforms based application that hosts the Workflow designer. The designer hosted version is based on the excellent MSDN hosting example by Vihang Dalal found at &lt;a href="http://msdn2.microsoft.com/en-us/library/aa480213.aspx" class="externalLink"&gt;http://msdn2.microsoft.com/en-us/library/aa480213.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. The bluetooth communication uses a wrapper called NXT# written by Bram Fokke at &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;Screenshot of the controller application:&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1111" alt="nxtcontroller-winform2.png" /&gt;&lt;br /&gt; &lt;br /&gt;The NXT robot I used for this application:&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1109" alt="IMG_4619.jpg" /&gt;&lt;br /&gt; &lt;br /&gt;This sample was developed using Visual Studio 2008 and targets the .NET 3.5 framework, although with a few modifications it could easily be converted back to a .NET 3.0 / Visual Studio 2005 project if required.&lt;br /&gt; &lt;br /&gt;It was developed simply to learn how to work with Windows Workflow Foundation, and as such, is only a proof of concept,&lt;br /&gt;and very incomplete. But the basic idea could be expanded upon by someone with more time.&lt;br /&gt; &lt;br /&gt;The NxtActivities project currently has only two workflow activities to control motor ports. Eventually this could be expanded to include input activities to read and react to the state of the various input sensors, but this part of the sample remains to be completed.&lt;br /&gt; &lt;br /&gt;The two activities are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Motor - Control one output port (example: run motor A for 2 seconds on power 100)&lt;/li&gt;&lt;li&gt;Move - Control two output ports in sync (example: move a robot with two drive motors in a straight line for 10 seconds on power 100)&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Prerequisites
&lt;/h2&gt;This project uses the excellent NXT# which can be found here &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;In order to build it you must first download &lt;b&gt;NxtSharp.binaries.zip&lt;/b&gt; from the download section.and place the latest version of these two&lt;br /&gt;assemblies in the lib folder:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Bram.Utilities.dll&lt;/li&gt;&lt;li&gt;Bram.NxtSharp.dll&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;This sample was developed using version 0.3 of NXT#.&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
Contents
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;lib&lt;/b&gt; - External dependencies, place the two NXT# assemblies here&lt;/li&gt;&lt;li&gt;&lt;b&gt;NxtActivities&lt;/b&gt; - The activities library containing the two activities, and  various workflow helper classes.&lt;/li&gt;&lt;li&gt;&lt;b&gt;NxtController&lt;/b&gt; - The Winform application that hosts the workflow designer&lt;/li&gt;&lt;li&gt;&lt;b&gt;NxtControllerConsole&lt;/b&gt; - The sample console controller&lt;/li&gt;&lt;li&gt;&lt;b&gt;WorkflowDesignerControl&lt;/b&gt; - A control that simplifies the designer hosting&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Instructions
&lt;/h2&gt;Console version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtControllerConsole as your startup project&lt;/li&gt;&lt;li&gt;In the NxtControllerConsole project, modify this line in Program.cs to use the correct COM port NxtWorkflowRunner runner = new NxtWorkflowRunner(&amp;quot;COM8&amp;quot;);&lt;/li&gt;&lt;li&gt;Inspect Workflow1.cs to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Run.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Winform version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtController as your startup project&lt;/li&gt;&lt;li&gt;Run the app, use the Tools | Options menu to set the COM port&lt;/li&gt;&lt;li&gt;Use the File | Open... menu to open ....\NxtController\Workflows\Workflow3.xoml&lt;/li&gt;&lt;li&gt;Inspect the workflow to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Press the green play button on the toolbar.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>Lorenh</author><pubDate>Thu, 06 Mar 2008 20:52:40 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080306P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Wiki/View.aspx?title=Home&amp;version=9</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
NXT Workflow Sample
&lt;/h1&gt; &lt;br /&gt;This sample demonstrates how you can use Windows Workflow Foundation to remote control a Lego (R) Mindstorms (R) NXT robot through a Bluetooth connection. It includes a console driver program, as well as a Winforms based application that hosts the Workflow designer. The designer hosted version is based on the excellent MSDN hosting example by Vihang Dalal found at &lt;a href="http://msdn2.microsoft.com/en-us/library/aa480213.aspx" class="externalLink"&gt;http://msdn2.microsoft.com/en-us/library/aa480213.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. The bluetooth communication uses a wrapper called NXT# written by Bram Fokke at &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;The NXT robot I used for this application:&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1109" alt="IMG_4619.jpg" /&gt;&lt;br /&gt; &lt;br /&gt;Screenshot of the controller application:&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1111" alt="nxtcontroller-winform2.png" /&gt;&lt;br /&gt; &lt;br /&gt;This sample was developed using Visual Studio 2008 and targets the .NET 3.5 framework, although there is probably no reason that with a few modifications it could not be converted back to a .NET 3.0 / Visual Studio 2005 project if required.&lt;br /&gt; &lt;br /&gt;It was developed simply to learn how to work with Windows Workflow Foundation, and as such, is only a proof of concept,&lt;br /&gt;and very incomplete. But the basic idea could be expanded upon by someone with more time.&lt;br /&gt; &lt;br /&gt;The NxtActivities project currently has only two workflow activities to control motor ports. Eventually this could be expanded to include input activities to read and react to the state of the various input sensors, but this part of the sample remains to be completed.&lt;br /&gt; &lt;br /&gt;The two activities are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Motor - Control one output port (example: run motor A for 2 seconds on power 100)&lt;/li&gt;&lt;li&gt;Move - Control two output ports in sync (example: move a robot with two drive motors in a straight line for 10 seconds on power 100)&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Prerequisites
&lt;/h2&gt;This project uses the excellent NXT# which can be found here&lt;br /&gt;&lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;In order to build it you must first download NxtSharp.binaries.zip from the download section.and place the latest version of these two&lt;br /&gt;assemblies in the lib folder:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Bram.Utilities.dll&lt;/li&gt;&lt;li&gt;Bram.NxtSharp.dll&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;This sample was developed using version 0.3.&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
Contents
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;lib - External dependencies, place the two NXT# assemblies here&lt;/li&gt;&lt;li&gt;NxtActivities - The activities library containing the two activities, and  various workflow helper classes.&lt;/li&gt;&lt;li&gt;NxtController - The Winform application that hosts the workflow designer&lt;/li&gt;&lt;li&gt;NxtControllerConsole - The sample console controller&lt;/li&gt;&lt;li&gt;WorkflowDesignerControl - A control that simplifies the designer hosting&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Instructions
&lt;/h2&gt;Console version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtControllerConsole as your startup project&lt;/li&gt;&lt;li&gt;In the NxtControllerConsole project, modify this line in Program.cs to use the correct COM port NxtWorkflowRunner runner = new NxtWorkflowRunner(&amp;quot;COM8&amp;quot;);&lt;/li&gt;&lt;li&gt;Inspect Workflow1.cs to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Run.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Winform version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtController as your startup project&lt;/li&gt;&lt;li&gt;Run the app, use the Tools | Options menu to set the COM port&lt;/li&gt;&lt;li&gt;Use the File | Open... menu to open ....\NxtController\Workflows\Workflow3.xoml&lt;/li&gt;&lt;li&gt;Inspect the workflow to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Press the green play button on the toolbar.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>Lorenh</author><pubDate>Thu, 06 Mar 2008 20:46:35 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080306P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Wiki/View.aspx?title=Home&amp;version=8</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
NXT Workflow Sample
&lt;/h1&gt; &lt;br /&gt;This sample demonstrates how you can use Windows Workflow Foundation to remote control a Lego (R) Mindstorms (R) NXT robot through a Bluetooth connection. It includes a console driver program, as well as a Winforms based application that hosts the Workflow designer. The designer hosted version is based on the excellent MSDN hosting example by Vihang Dalal found at &lt;a href="http://msdn2.microsoft.com/en-us/library/aa480213.aspx" class="externalLink"&gt;http://msdn2.microsoft.com/en-us/library/aa480213.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. The bluetooth communication uses a wrapper called NXT# written by Bram Fokke at &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;The NXT robot I used for this sample&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1109" alt="IMG_4619.jpg" /&gt;&lt;br /&gt; &lt;br /&gt;Screenshot of the controller application&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1111" alt="nxtcontroller-winform2.png" /&gt;&lt;br /&gt; &lt;br /&gt;This sample was developed using Visual Studio 2008 and targets the .NET 3.5 framework, although there is probably no reason that with a few modifications it could not be converted back to a .NET 3.0 / Visual Studio 2005 project if required.&lt;br /&gt; &lt;br /&gt;It was developed simply to learn how to work with Windows Workflow Foundation, and as such, is only a proof of concept,&lt;br /&gt;and very incomplete. But the basic idea could be expanded upon by someone with more time.&lt;br /&gt; &lt;br /&gt;The NxtActivities project currently has only two workflow activities to control motor ports. Eventually this could be expanded to include input activities to read and react to the state of the various input sensors, but this part of the sample remains to be completed.&lt;br /&gt; &lt;br /&gt;The two activities are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Motor - Control one output port (example: run motor A for 2 seconds on power 100)&lt;/li&gt;&lt;li&gt;Move - Control two output ports in sync (example: move a robot with two drive motors in a straight line for 10 seconds on power 100)&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Prerequisites
&lt;/h2&gt;This project uses the excellent NXT# which can be found here&lt;br /&gt;&lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;In order to build it you must first download NxtSharp.binaries.zip from the download section.and place the latest version of these two&lt;br /&gt;assemblies in the lib folder:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Bram.Utilities.dll&lt;/li&gt;&lt;li&gt;Bram.NxtSharp.dll&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;This sample was developed using version 0.3.&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
Contents
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;lib - External dependencies, place the two NXT# assemblies here&lt;/li&gt;&lt;li&gt;NxtActivities - The activities library containing the two activities, and  various workflow helper classes.&lt;/li&gt;&lt;li&gt;NxtController - The Winform application that hosts the workflow designer&lt;/li&gt;&lt;li&gt;NxtControllerConsole - The sample console controller&lt;/li&gt;&lt;li&gt;WorkflowDesignerControl - A control that simplifies the designer hosting&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Instructions
&lt;/h2&gt;Console version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtControllerConsole as your startup project&lt;/li&gt;&lt;li&gt;In the NxtControllerConsole project, modify this line in Program.cs to use the correct COM port NxtWorkflowRunner runner = new NxtWorkflowRunner(&amp;quot;COM8&amp;quot;);&lt;/li&gt;&lt;li&gt;Inspect Workflow1.cs to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Run.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Winform version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtController as your startup project&lt;/li&gt;&lt;li&gt;Run the app, use the Tools | Options menu to set the COM port&lt;/li&gt;&lt;li&gt;Use the File | Open... menu to open ....\NxtController\Workflows\Workflow3.xoml&lt;/li&gt;&lt;li&gt;Inspect the workflow to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Press the green play button on the toolbar.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>Lorenh</author><pubDate>Thu, 06 Mar 2008 20:46:00 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080306P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Wiki/View.aspx?title=Home&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
NXT Workflow Sample
&lt;/h1&gt; &lt;br /&gt;This sample demonstrates how you can use Windows Workflow Foundation to remote control a Lego (R) Mindstorms (R) NXT robot through a Bluetooth connection. It includes a console driver program, as well as a Winforms based application that hosts the Workflow designer. The designer hosted version is based on the excellent MSDN hosting example by Vihang Dalal found at &lt;a href="http://msdn2.microsoft.com/en-us/library/aa480213.aspx" class="externalLink"&gt;http://msdn2.microsoft.com/en-us/library/aa480213.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. The bluetooth communication uses a wrapper called NXT# written by Bram Fokke at &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;The NXT robot I used for this sample&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1109" alt="IMG_4619.jpg" /&gt;&lt;br /&gt; &lt;br /&gt;Screenshot of the controller application&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1111" alt="nxtcontroller-winform2.png" /&gt;&lt;br /&gt; &lt;br /&gt;This sample was developed using Visual Studio 2008 and targets the .NET 3.5 framework, although there is probably no reason that with a few modifications it could not be converted back to a .NET 3.0 / Visual Studio 2005 project if required.&lt;br /&gt; &lt;br /&gt;It was developed as part of an exercise to learn how to work with Windows Workflow Foundation, and as such, is only a proof of concept,&lt;br /&gt;and very incomplete. But the basic idea could be expanded upon by someone with more time.&lt;br /&gt; &lt;br /&gt;The NxtActivities project currently has only two workflow activities to control motor ports. Eventually this could be expanded to include input activities to read and react to the state of the various input sensors, but this part of the sample remains to be completed.&lt;br /&gt; &lt;br /&gt;The two activities are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Motor - Control one output port (example: run motor A for 2 seconds on power 100)&lt;/li&gt;&lt;li&gt;Move - Control two output ports in sync (example: move a robot with two drive motors in a straight line for 10 seconds on power 100)&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Prerequisites
&lt;/h2&gt;This project uses the excellent NXT# which can be found here&lt;br /&gt;&lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;In order to build it you must first download NxtSharp.binaries.zip from the download section.and place the latest version of these two&lt;br /&gt;assemblies in the lib folder:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Bram.Utilities.dll&lt;/li&gt;&lt;li&gt;Bram.NxtSharp.dll&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;This sample was developed using version 0.3.&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
Contents
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;lib - External dependencies, place the two NXT# assemblies here&lt;/li&gt;&lt;li&gt;NxtActivities - The activities library containing the two activities, and  various workflow helper classes.&lt;/li&gt;&lt;li&gt;NxtController - The Winform application that hosts the workflow designer&lt;/li&gt;&lt;li&gt;NxtControllerConsole - The sample console controller&lt;/li&gt;&lt;li&gt;WorkflowDesignerControl - A control that simplifies the designer hosting&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Instructions
&lt;/h2&gt;Console version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtControllerConsole as your startup project&lt;/li&gt;&lt;li&gt;In the NxtControllerConsole project, modify this line in Program.cs to use the correct COM port NxtWorkflowRunner runner = new NxtWorkflowRunner(&amp;quot;COM8&amp;quot;);&lt;/li&gt;&lt;li&gt;Inspect Workflow1.cs to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Run.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Winform version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtController as your startup project&lt;/li&gt;&lt;li&gt;Run the app, use the Tools | Options menu to set the COM port&lt;/li&gt;&lt;li&gt;Use the File | Open... menu to open ....\NxtController\Workflows\Workflow3.xoml&lt;/li&gt;&lt;li&gt;Inspect the workflow to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Press the green play button on the toolbar.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>Lorenh</author><pubDate>Thu, 06 Mar 2008 20:45:21 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080306P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Wiki/View.aspx?title=Home&amp;version=6</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
NXT Workflow Sample
&lt;/h1&gt; &lt;br /&gt;This sample demonstrates how you can use Windows Workflow Foundation to remote control a Lego Mindstorms NXT robot through a Bluetooth connection. It includes a console driver program, as well as a Winforms based application that hosts the Workflow designer. The designer hosted version is based on the excellent MSDN hosting example by Vihang Dalal found at &lt;a href="http://msdn2.microsoft.com/en-us/library/aa480213.aspx" class="externalLink"&gt;http://msdn2.microsoft.com/en-us/library/aa480213.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. The bluetooth communication uses a wrapper called NXT# written by Bram Fokke at &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1109" alt="IMG_4619.jpg" /&gt;&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1111" alt="nxtcontroller-winform2.png" /&gt;&lt;br /&gt; &lt;br /&gt;This sample was developed using Visual Studio 2008 and targets the .NET 3.5 framework, although there is probably no reason that with a few modifications it could not be converted back to a .NET 3.0 / Visual Studio 2005 project if required.&lt;br /&gt; &lt;br /&gt;It was developed as part of an exercise to learn how to work with Windows Workflow Foundation, and as such, is only a proof of concept,&lt;br /&gt;and very incomplete. But the basic idea could be expanded upon by someone with more time.&lt;br /&gt; &lt;br /&gt;The NxtActivities project currently has only two workflow activities to control motor ports. Eventually this could be expanded to include input activities to read and react to the state of the various input sensors, but this part of the sample remains to be completed.&lt;br /&gt; &lt;br /&gt;The two activities are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Motor - Control one output port (example: run motor A for 2 seconds on power 100)&lt;/li&gt;&lt;li&gt;Move - Control two output ports in sync (example: move a robot with two drive motors in a straight line for 10 seconds on power 100)&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Prerequisites
&lt;/h2&gt;This project uses the excellent NXT# which can be found here&lt;br /&gt;&lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;In order to build it you must first download NxtSharp.binaries.zip from the download section.and place the latest version of these two&lt;br /&gt;assemblies in the lib folder:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Bram.Utilities.dll&lt;/li&gt;&lt;li&gt;Bram.NxtSharp.dll&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;This sample was developed using version 0.3.&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
Contents
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;lib - External dependencies, place the two NXT# assemblies here&lt;/li&gt;&lt;li&gt;NxtActivities - The activities library containing the two activities, and  various workflow helper classes.&lt;/li&gt;&lt;li&gt;NxtController - The Winform application that hosts the workflow designer&lt;/li&gt;&lt;li&gt;NxtControllerConsole - The sample console controller&lt;/li&gt;&lt;li&gt;WorkflowDesignerControl - A control that simplifies the designer hosting&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Instructions
&lt;/h2&gt;Console version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtControllerConsole as your startup project&lt;/li&gt;&lt;li&gt;In the NxtControllerConsole project, modify this line in Program.cs to use the correct COM port NxtWorkflowRunner runner = new NxtWorkflowRunner(&amp;quot;COM8&amp;quot;);&lt;/li&gt;&lt;li&gt;Inspect Workflow1.cs to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Run.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Winform version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtController as your startup project&lt;/li&gt;&lt;li&gt;Run the app, use the Tools | Options menu to set the COM port&lt;/li&gt;&lt;li&gt;Use the File | Open... menu to open ....\NxtController\Workflows\Workflow3.xoml&lt;/li&gt;&lt;li&gt;Inspect the workflow to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Press the green play button on the toolbar.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>Lorenh</author><pubDate>Thu, 06 Mar 2008 20:40:24 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080306P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Wiki/View.aspx?title=Home&amp;version=5</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
NXT Workflow Sample
&lt;/h1&gt; &lt;br /&gt;This sample demonstrates how you can use Windows Workflow Foundation to remote control a Lego Mindstorms NXT robot through a Bluetooth connection. It includes a console driver program, as well as a Winforms based application that hosts the Workflow designer. The hosted version is based heavily on the excellent MSDN hosting example by Vihang Dalal found at &lt;a href="http://msdn2.microsoft.com/en-us/library/aa480213.aspx" class="externalLink"&gt;http://msdn2.microsoft.com/en-us/library/aa480213.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. The bluetooth communication uses a wrapper called NXT# written by Bram Fokke at &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1109" alt="IMG_4619.jpg" /&gt;&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1111" alt="nxtcontroller-winform2.png" /&gt;&lt;br /&gt; &lt;br /&gt;This sample was developed using Visual Studio 2008 and targets the .NET 3.5 framework, although there is probably no reason that with a few modifications it could not be converted back to a .NET 3.0 / Visual Studio 2005 project if required.&lt;br /&gt; &lt;br /&gt;It was developed as part of an exercise to learn how to work with Windows Workflow Foundation, and as such, is only a proof of concept,&lt;br /&gt;and very incomplete. But the basic idea could be expanded upon by someone with more time.&lt;br /&gt; &lt;br /&gt;The NxtActivities project currently has only two workflow activities to control motor ports. Eventually this could be expanded to include input activities to read and react to the state of the various input sensors, but this part of the sample remains to be completed.&lt;br /&gt; &lt;br /&gt;The two activities are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Motor - Control one output port (example: run motor A for 2 seconds on power 100)&lt;/li&gt;&lt;li&gt;Move - Control two output ports in sync (example: move a robot with two drive motors in a straight line for 10 seconds on power 100)&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Prerequisites
&lt;/h2&gt;This project uses the excellent NXT# which can be found here&lt;br /&gt;&lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;In order to build it you must first download NxtSharp.binaries.zip from the download section.and place the latest version of these two&lt;br /&gt;assemblies in the lib folder:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Bram.Utilities.dll&lt;/li&gt;&lt;li&gt;Bram.NxtSharp.dll&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;This sample was developed using version 0.3.&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
Contents
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;lib - External dependencies, place the two NXT# assemblies here&lt;/li&gt;&lt;li&gt;NxtActivities - The activities library containing the two activities, and  various workflow helper classes.&lt;/li&gt;&lt;li&gt;NxtController - The Winform application that hosts the workflow designer&lt;/li&gt;&lt;li&gt;NxtControllerConsole - The sample console controller&lt;/li&gt;&lt;li&gt;WorkflowDesignerControl - A control that simplifies the designer hosting&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Instructions
&lt;/h2&gt;Console version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtControllerConsole as your startup project&lt;/li&gt;&lt;li&gt;In the NxtControllerConsole project, modify this line in Program.cs to use the correct COM port NxtWorkflowRunner runner = new NxtWorkflowRunner(&amp;quot;COM8&amp;quot;);&lt;/li&gt;&lt;li&gt;Inspect Workflow1.cs to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Run.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Winform version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtController as your startup project&lt;/li&gt;&lt;li&gt;Run the app, use the Tools | Options menu to set the COM port&lt;/li&gt;&lt;li&gt;Use the File | Open... menu to open ....\NxtController\Workflows\Workflow3.xoml&lt;/li&gt;&lt;li&gt;Inspect the workflow to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Press the green play button on the toolbar.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>Lorenh</author><pubDate>Thu, 06 Mar 2008 20:39:48 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080306P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Wiki/View.aspx?title=Home&amp;version=4</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
NXT Workflow Sample
&lt;/h1&gt; &lt;br /&gt;This sample demonstrates how you can use Windows Workflow Foundation to remote control a Lego Mindstorms NXT robot through a Bluetooth connection. It includes a console driver program, as well as a Winforms based application that hosts the Workflow designer. The hosted version is based heavily on the excellent MSDN hosting example by Vihang Dalal found at &lt;a href="http://msdn2.microsoft.com/en-us/library/aa480213.aspx" class="externalLink"&gt;http://msdn2.microsoft.com/en-us/library/aa480213.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. The bluetooth communication uses a wrapper called NXT# written by Bram Fokke at &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;span class="unresolved"&gt;Cannot resolve link: &lt;/span&gt;[image:IMG_4619.gif]&lt;br /&gt; &lt;br /&gt;This sample was developed using Visual Studio 2008 and targets the .NET 3.5 framework, although there is probably no reason that with a few modifications it could not be converted back to a .NET 3.0 / Visual Studio 2005 project if required.&lt;br /&gt; &lt;br /&gt;It was developed as part of an exercise to learn how to work with Windows Workflow Foundation, and as such, is only a proof of concept,&lt;br /&gt;and very incomplete. But the basic idea could be expanded upon by someone with more time.&lt;br /&gt; &lt;br /&gt;The NxtActivities project currently has only two workflow activities to control motor ports. Eventually this could be expanded to include input activities to read and react to the state of the various input sensors, but this part of the sample remains to be completed.&lt;br /&gt; &lt;br /&gt;The two activities are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Motor - Control one output port (example: run motor A for 2 seconds on power 100)&lt;/li&gt;&lt;li&gt;Move - Control two output ports in sync (example: move a robot with two drive motors in a straight line for 10 seconds on power 100)&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Prerequisites
&lt;/h2&gt;This project uses the excellent NXT# which can be found here&lt;br /&gt;&lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;In order to build it you must first download NxtSharp.binaries.zip from the download section.and place the latest version of these two&lt;br /&gt;assemblies in the lib folder:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Bram.Utilities.dll&lt;/li&gt;&lt;li&gt;Bram.NxtSharp.dll&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;This sample was developed using version 0.3.&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
Contents
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;lib - External dependencies, place the two NXT# assemblies here&lt;/li&gt;&lt;li&gt;NxtActivities - The activities library containing the two activities, and  various workflow helper classes.&lt;/li&gt;&lt;li&gt;NxtController - The Winform application that hosts the workflow designer&lt;/li&gt;&lt;li&gt;NxtControllerConsole - The sample console controller&lt;/li&gt;&lt;li&gt;WorkflowDesignerControl - A control that simplifies the designer hosting&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Instructions
&lt;/h2&gt;Console version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtControllerConsole as your startup project&lt;/li&gt;&lt;li&gt;In the NxtControllerConsole project, modify this line in Program.cs to use the correct COM port NxtWorkflowRunner runner = new NxtWorkflowRunner(&amp;quot;COM8&amp;quot;);&lt;/li&gt;&lt;li&gt;Inspect Workflow1.cs to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Run.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Winform version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtController as your startup project&lt;/li&gt;&lt;li&gt;Run the app, use the Tools | Options menu to set the COM port&lt;/li&gt;&lt;li&gt;Use the File | Open... menu to open ....\NxtController\Workflows\Workflow3.xoml&lt;/li&gt;&lt;li&gt;Inspect the workflow to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Press the green play button on the toolbar.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>Lorenh</author><pubDate>Thu, 06 Mar 2008 20:37:25 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080306P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Wiki/View.aspx?title=Home&amp;version=3</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
NXT Workflow Sample
&lt;/h1&gt; &lt;br /&gt;This sample demonstrates how you can use Windows Workflow Foundation to remote control a Lego Mindstorms NXT robot through a Bluetooth connection. It includes a console driver program, as well as a Winforms based application that hosts the Workflow designer. The hosted version is based heavily on the excellent MSDN hosting example by Vihang Dalal found at &lt;a href="http://msdn2.microsoft.com/en-us/library/aa480213.aspx" class="externalLink"&gt;http://msdn2.microsoft.com/en-us/library/aa480213.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. The bluetooth communication uses a wrapper called NXT# written by Bram Fokke at &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;span class="unresolved"&gt;Cannot resolve link: &lt;/span&gt;[image:IMG_4619.gif]&lt;br /&gt; &lt;br /&gt;This sample was developed using Visual Studio 2008 and targets the .NET 3.5 framework, although there is probably no reason that with a few modifications it could not be converted back to a .NET 3.0 / Visual Studio 2005 project if required.&lt;br /&gt; &lt;br /&gt;It was developed as part of an exercise to learn how to work with Windows Workflow Foundation, and as such, is only a proof of concept,&lt;br /&gt;and very incomplete. But the basic idea could be expanded upon by someone with more time.&lt;br /&gt; &lt;br /&gt;The NxtActivities project currently has only two workflow activities to control motor ports. Eventually this could be expanded to include input activities to read and react to the state of the various input sensors, but this part of the sample remains to be completed.&lt;br /&gt; &lt;br /&gt;The two activities are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Motor - Control one output port (example: run motor A for 2 seconds on power 100)&lt;/li&gt;&lt;li&gt;Move - Control two output ports in sync (example: move a robot with two drive motors in a straight line for 10 seconds on power 100)&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Prerequisites
&lt;/h2&gt;This project uses the excellent NXT# which can be found here&lt;br /&gt;&lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;In order to build it you must first download NxtSharp.binaries.zip from the download section.and place the latest version of these two&lt;br /&gt;assemblies in the lib folder:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Bram.Utilities.dll&lt;/li&gt;&lt;li&gt;Bram.NxtSharp.dll&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;This sample was developed using version 0.3.&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
Contents
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;lib - External dependencies, place the two NXT# assemblies here&lt;/li&gt;&lt;li&gt;NxtActivities - The activities library containing the two activities, and  various workflow helper classes.&lt;/li&gt;&lt;li&gt;NxtController - The Winform application that hosts the workflow designer&lt;/li&gt;&lt;li&gt;NxtControllerConsole - The sample console controller&lt;/li&gt;&lt;li&gt;WorkflowDesignerControl - A control that simplifies the designer hosting&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Instructions
&lt;/h2&gt;Console version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtControllerConsole as your startup project&lt;/li&gt;&lt;li&gt;In the NxtControllerConsole project, modify this line in Program.cs to use the correct COM port NxtWorkflowRunner runner = new NxtWorkflowRunner(&amp;quot;COM8&amp;quot;);&lt;/li&gt;&lt;li&gt;Inspect Workflow1.cs to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Run.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Winform version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtController as your startup project&lt;/li&gt;&lt;li&gt;Run the app, use the Tools | Options menu to set the COM port&lt;/li&gt;&lt;li&gt;Use the File | Open... menu to open ....\NxtController\Workflows\Workflow3.xoml&lt;/li&gt;&lt;li&gt;Inspect the workflow to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Press the green play button on the toolbar.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>Lorenh</author><pubDate>Thu, 06 Mar 2008 20:32:43 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080306P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Wiki/View.aspx?title=Home&amp;version=2</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
NXT Workflow Sample
&lt;/h1&gt; &lt;br /&gt;This sample demonstrates how you can use Windows Workflow Foundation to remote control a Lego Mindstorms NXT robot through a Bluetooth connection. It includes a console driver program, as well as a Winforms based application that hosts the Workflow designer. The hosted version is based heavily on the excellent MSDN hosting example by Vihang Dalal found at &lt;a href="http://msdn2.microsoft.com/en-us/library/aa480213.aspx" class="externalLink"&gt;http://msdn2.microsoft.com/en-us/library/aa480213.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. The bluetooth communication uses a wrapper called NXT# written by Bram Fokke at &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;This sample was developed using Visual Studio 2008 and targets the .NET 3.5 framework, although there is probably no reason that with a few modifications it could not be converted back to a .NET 3.0 / Visual Studio 2005 project if required.&lt;br /&gt; &lt;br /&gt;It was developed as part of an exercise to learn how to work with Windows Workflow Foundation, and as such, is only a proof of concept,&lt;br /&gt;and very incomplete. But the basic idea could be expanded upon by someone with more time.&lt;br /&gt; &lt;br /&gt;The NxtActivities project currently has only two workflow activities to control motor ports. Eventually this could be expanded to include input activities to read and react to the state of the various input sensors, but this part of the sample remains to be completed.&lt;br /&gt; &lt;br /&gt;The two activities are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Motor - Control one output port (example: run motor A for 2 seconds on power 100)&lt;/li&gt;&lt;li&gt;Move - Control two output ports in sync (example: move a robot with two drive motors in a straight line for 10 seconds on power 100)&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Prerequisites
&lt;/h2&gt;This project uses the excellent NXT# which can be found here&lt;br /&gt;&lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;In order to build it you must first download NxtSharp.binaries.zip from the download section.and place the latest version of these two&lt;br /&gt;assemblies in the lib folder:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Bram.Utilities.dll&lt;/li&gt;&lt;li&gt;Bram.NxtSharp.dll&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;This sample was developed using version 0.3.&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
Contents
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;lib - External dependencies, place the two NXT# assemblies here&lt;/li&gt;&lt;li&gt;NxtActivities - The activities library containing the two activities, and  various workflow helper classes.&lt;/li&gt;&lt;li&gt;NxtController - The Winform application that hosts the workflow designer&lt;/li&gt;&lt;li&gt;NxtControllerConsole - The sample console controller&lt;/li&gt;&lt;li&gt;WorkflowDesignerControl - A control that simplifies the designer hosting&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Instructions
&lt;/h2&gt;Console version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtControllerConsole as your startup project&lt;/li&gt;&lt;li&gt;In the NxtControllerConsole project, modify this line in Program.cs to use the correct COM port NxtWorkflowRunner runner = new NxtWorkflowRunner(&amp;quot;COM8&amp;quot;);&lt;/li&gt;&lt;li&gt;Inspect Workflow1.cs to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Run.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Winform version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtController as your startup project&lt;/li&gt;&lt;li&gt;Run the app, use the Tools | Options menu to set the COM port&lt;/li&gt;&lt;li&gt;Use the File | Open... menu to open ....\NxtController\Workflows\Workflow3.xoml&lt;/li&gt;&lt;li&gt;Inspect the workflow to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Press the green play button on the toolbar.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>Lorenh</author><pubDate>Thu, 06 Mar 2008 20:19:43 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080306P</guid></item><item><title>CREATED RELEASE: 1.0.0.0 (Mar 06, 2008)</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Release/ProjectReleases.aspx?ReleaseId=621</link><description>Initial Release</description><author></author><pubDate>Thu, 06 Mar 2008 20:12:32 GMT</pubDate><guid isPermaLink="false">CREATED RELEASE: 1.0.0.0 (Mar 06, 2008) 20080306P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/NXTWorkflow/Wiki/View.aspx?title=Home&amp;version=10</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
NXT Workflow Sample
&lt;/h1&gt; &lt;br /&gt;This sample demonstrates how you can use Windows Workflow Foundation to remote control a Lego (R) Mindstorms (R) NXT robot through a Bluetooth connection. It includes a console driver program, as well as a Winforms based application that hosts the Workflow designer. The designer hosted version is based on the excellent MSDN hosting example by Vihang Dalal found at &lt;a href="http://msdn2.microsoft.com/en-us/library/aa480213.aspx" class="externalLink"&gt;http://msdn2.microsoft.com/en-us/library/aa480213.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. The bluetooth communication uses a wrapper called NXT# written by Bram Fokke at &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;The NXT robot I used for this application:&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1109" alt="IMG_4619.jpg" /&gt;&lt;br /&gt; &lt;br /&gt;Screenshot of the controller application:&lt;br /&gt; &lt;br /&gt;&lt;img src="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=NXTWorkflow&amp;amp;DownloadId=1111" alt="nxtcontroller-winform2.png" /&gt;&lt;br /&gt; &lt;br /&gt;This sample was developed using Visual Studio 2008 and targets the .NET 3.5 framework, although with a few modifications it could easily be converted back to a .NET 3.0 / Visual Studio 2005 project if required.&lt;br /&gt; &lt;br /&gt;It was developed simply to learn how to work with Windows Workflow Foundation, and as such, is only a proof of concept,&lt;br /&gt;and very incomplete. But the basic idea could be expanded upon by someone with more time.&lt;br /&gt; &lt;br /&gt;The NxtActivities project currently has only two workflow activities to control motor ports. Eventually this could be expanded to include input activities to read and react to the state of the various input sensors, but this part of the sample remains to be completed.&lt;br /&gt; &lt;br /&gt;The two activities are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Motor - Control one output port (example: run motor A for 2 seconds on power 100)&lt;/li&gt;&lt;li&gt;Move - Control two output ports in sync (example: move a robot with two drive motors in a straight line for 10 seconds on power 100)&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Prerequisites
&lt;/h2&gt;This project uses the excellent NXT# which can be found here &lt;a href="http://nxtsharp.fokke.net" class="externalLink"&gt;http://nxtsharp.fokke.net&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;In order to build it you must first download &lt;b&gt;NxtSharp.binaries.zip&lt;/b&gt; from the download section.and place the latest version of these two&lt;br /&gt;assemblies in the lib folder:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Bram.Utilities.dll&lt;/li&gt;&lt;li&gt;Bram.NxtSharp.dll&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;This sample was developed using version 0.3 of NXT#&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
Contents
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;lib&lt;/b&gt; - External dependencies, place the two NXT# assemblies here&lt;/li&gt;&lt;li&gt;&lt;b&gt;NxtActivities&lt;/b&gt; - The activities library containing the two activities, and  various workflow helper classes.&lt;/li&gt;&lt;li&gt;&lt;b&gt;NxtController&lt;/b&gt; - The Winform application that hosts the workflow designer&lt;/li&gt;&lt;li&gt;&lt;b&gt;NxtControllerConsole&lt;/b&gt; - The sample console controller&lt;/li&gt;&lt;li&gt;&lt;b&gt;WorkflowDesignerControl&lt;/b&gt; - A control that simplifies the designer hosting&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Instructions
&lt;/h2&gt;Console version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtControllerConsole as your startup project&lt;/li&gt;&lt;li&gt;In the NxtControllerConsole project, modify this line in Program.cs to use the correct COM port NxtWorkflowRunner runner = new NxtWorkflowRunner(&amp;quot;COM8&amp;quot;);&lt;/li&gt;&lt;li&gt;Inspect Workflow1.cs to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Run.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Winform version:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open NxtWorkflow.sln in Visual Studio 2008&lt;/li&gt;&lt;li&gt;Connect your PC to your NXT through Bluetooth, note the COM port used, (default is COM8)&lt;/li&gt;&lt;li&gt;Set NxtController as your startup project&lt;/li&gt;&lt;li&gt;Run the app, use the Tools | Options menu to set the COM port&lt;/li&gt;&lt;li&gt;Use the File | Open... menu to open ....\NxtController\Workflows\Workflow3.xoml&lt;/li&gt;&lt;li&gt;Inspect the workflow to make sure all of the motor ports are correct for your robot.&lt;/li&gt;&lt;li&gt;Press the green play button on the toolbar.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>Lorenh</author><pubDate>Thu, 06 Mar 2008 17:49:39 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080306P</guid></item></channel></rss>