| 1 | |
|---|
| 2 | <!DOCTYPE html |
|---|
| 3 | PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|---|
| 4 | <html> |
|---|
| 5 | <head> |
|---|
| 6 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|---|
| 7 | |
|---|
| 8 | <!-- |
|---|
| 9 | This HTML is auto-generated from an M-file. |
|---|
| 10 | To make changes, update the M-file and republish this document. |
|---|
| 11 | --> |
|---|
| 12 | <title>NXT_StopProgram</title> |
|---|
| 13 | <meta name="generator" content="MATLAB 7.7"> |
|---|
| 14 | <meta name="date" content="2008-11-05"> |
|---|
| 15 | <meta name="m-file" content="script_NXT_StopProgram"> |
|---|
| 16 | <link type="text/css" rel="stylesheet" href="../../style.css"> |
|---|
| 17 | </head> |
|---|
| 18 | <body> |
|---|
| 19 | <p class="header">RWTH - Mindstorms NXT Toolbox</p> |
|---|
| 20 | <div class="content"> |
|---|
| 21 | <h1>NXT_StopProgram</h1> |
|---|
| 22 | <!--introduction--> |
|---|
| 23 | <p>Stops a specific program on the NXT Brick</p> |
|---|
| 24 | <!--/introduction--> |
|---|
| 25 | <h2>Contents</h2> |
|---|
| 26 | <div> |
|---|
| 27 | <ul> |
|---|
| 28 | <li><a href="#2">Syntax</a></li> |
|---|
| 29 | <li><a href="#5">Description</a></li> |
|---|
| 30 | <li><a href="#10">Examples</a></li> |
|---|
| 31 | <li><a href="#13">See also</a></li> |
|---|
| 32 | <li><a href="#15">Signature</a></li> |
|---|
| 33 | </ul> |
|---|
| 34 | </div> |
|---|
| 35 | <h2>Syntax<a name="2"></a></h2> |
|---|
| 36 | <p><tt>NXT_StopProgram()</tt></p> |
|---|
| 37 | <p><tt>NXT_StopProgram(handle)</tt></p> |
|---|
| 38 | <h2>Description<a name="5"></a></h2> |
|---|
| 39 | <p><tt>NXT_StopProgram()</tt> stops the current running embedded NXT Brick program. |
|---|
| 40 | </p> |
|---|
| 41 | <p><tt>NXT_StopProgram(handle)</tt> uses the given NXT connection <tt>handle</tt>. This should be a struct containing a serial handle on a PC system and a file handle on a Linux system. |
|---|
| 42 | </p> |
|---|
| 43 | <p>If no Bluetooth handle is specified the default one (<tt>COM_GetDefaultNXT</tt>) is used. |
|---|
| 44 | </p> |
|---|
| 45 | <p>For more details see the official LEGO Mindstorms communication protocol.</p> |
|---|
| 46 | <h2>Examples<a name="10"></a></h2><pre class="codeinput"> NXT_StopProgram(); |
|---|
| 47 | </pre><pre class="codeinput"> handle = COM_OpenNXT(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>); |
|---|
| 48 | NXT_StopProgram(handle); |
|---|
| 49 | </pre><h2>See also<a name="13"></a></h2> |
|---|
| 50 | <p><a href="NXT_StartProgram.html">NXT_StartProgram</a>, <a href="NXT_GetCurrentProgramName.html">NXT_GetCurrentProgramName</a></p> |
|---|
| 51 | <h2>Signature<a name="15"></a></h2> |
|---|
| 52 | <div> |
|---|
| 53 | <ul> |
|---|
| 54 | <li><b>Author:</b> Alexander Behrens, Linus Atorf (see AUTHORS) |
|---|
| 55 | </li> |
|---|
| 56 | <li><b>Date:</b> 2007/10/15 |
|---|
| 57 | </li> |
|---|
| 58 | <li><b>Copyright:</b> 2007-2008, RWTH Aachen University |
|---|
| 59 | </li> |
|---|
| 60 | </ul> |
|---|
| 61 | </div> |
|---|
| 62 | <p class="footer"><br> |
|---|
| 63 | Published with wg_publish; V1.0<br></p> |
|---|
| 64 | </div> |
|---|
| 65 | <!-- |
|---|
| 66 | ##### SOURCE BEGIN ##### |
|---|
| 67 | %% NXT_StopProgram |
|---|
| 68 | % Stops a specific program on the NXT Brick |
|---|
| 69 | %% |
|---|
| 70 | %% Syntax |
|---|
| 71 | % |NXT_StopProgram()| |
|---|
| 72 | %% |
|---|
| 73 | % |NXT_StopProgram(handle)| |
|---|
| 74 | %% |
|---|
| 75 | %% Description |
|---|
| 76 | % |NXT_StopProgram()| stops the current running embedded NXT Brick program. |
|---|
| 77 | %% |
|---|
| 78 | % |NXT_StopProgram(handle)| uses the given NXT connection |handle|. This should be |
|---|
| 79 | % a struct containing a serial handle on a PC system and a file handle on a Linux system. |
|---|
| 80 | %% |
|---|
| 81 | % If no Bluetooth handle is specified the default one (|COM_GetDefaultNXT|) is used. |
|---|
| 82 | %% |
|---|
| 83 | % For more details see the official LEGO Mindstorms communication protocol. |
|---|
| 84 | %% |
|---|
| 85 | %% Examples |
|---|
| 86 | NXT_StopProgram(); |
|---|
| 87 | %% |
|---|
| 88 | handle = COM_OpenNXT('bluetooth.ini','check'); |
|---|
| 89 | NXT_StopProgram(handle); |
|---|
| 90 | %% |
|---|
| 91 | %% See also |
|---|
| 92 | % NXT_StartProgram, NXT_GetCurrentProgramName |
|---|
| 93 | %% |
|---|
| 94 | %% Signature |
|---|
| 95 | %% |
|---|
| 96 | % * *Author:* Alexander Behrens, Linus Atorf (see AUTHORS) |
|---|
| 97 | % * *Date:* 2007/10/15 |
|---|
| 98 | % * *Copyright:* 2007-2008, RWTH Aachen University |
|---|
| 99 | % |
|---|
| 100 | |
|---|
| 101 | ##### SOURCE END ##### |
|---|
| 102 | --> |
|---|
| 103 | </body> |
|---|
| 104 | </html> |
|---|