| 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>SendToNXT</title> |
|---|
| 13 | <meta name="generator" content="MATLAB 7.7"> |
|---|
| 14 | <meta name="date" content="2008-11-04"> |
|---|
| 15 | <meta name="m-file" content="script_SendToNXT"> |
|---|
| 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>SendToNXT</h1> |
|---|
| 22 | <!--introduction--> |
|---|
| 23 | <p>Send motor settings to 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="#9">Limitations</a></li> |
|---|
| 31 | <li><a href="#15">See also</a></li> |
|---|
| 32 | <li><a href="#17">Signature</a></li> |
|---|
| 33 | </ul> |
|---|
| 34 | </div> |
|---|
| 35 | <h2>Syntax<a name="2"></a></h2> |
|---|
| 36 | <p><tt>SendToNXT(OBJ)</tt> or <tt>OBJ.SendToNXT</tt></p> |
|---|
| 37 | <p><tt>SendToNXT(OBJ, HANDLE)</tt> or <tt>OBJ.SendToNXT(HANDLE)</tt></p> |
|---|
| 38 | <h2>Description<a name="5"></a></h2> |
|---|
| 39 | <p><tt>SendToNXT(OBJ)</tt> or <tt>OBJ.SendToNXT</tt> sends the motor settings in <tt>OBJ</tt> to the NXT brick. |
|---|
| 40 | </p> |
|---|
| 41 | <p><tt>SendToNXT(OBJ, HANDLE)</tt> or <tt>OBJ.SendToNXT(HANDLE)</tt> uses <tt>HANDLE</tt> to identifiy the connection to use for this command. |
|---|
| 42 | </p> |
|---|
| 43 | <p>For a valid list of properties and how they affect the motors' behaviour, see the documentation for the class constructor |
|---|
| 44 | <tt>NXTmotor</tt>. |
|---|
| 45 | </p> |
|---|
| 46 | <h2>Limitations<a name="9"></a></h2> |
|---|
| 47 | <p>This function has a built-in waiting-period. A pause of 75ms will be made both before and after sending the actual command |
|---|
| 48 | to the NXT, resulting in a total execution time of about 150ms for this command. |
|---|
| 49 | </p> |
|---|
| 50 | <p>If you send a command to the NXT without waiting for the previous motor operation to have finished, the command will be dropped |
|---|
| 51 | (the NXT indicates this with a high beep tone). Use the motor-objects method <tt>WaitFor</tt> to make sure the motor is ready for new commands. |
|---|
| 52 | </p> |
|---|
| 53 | <h2>See also<a name="15"></a></h2> |
|---|
| 54 | <p><a href="NXTmotor.html">NXTmotor</a>, <a href="ReadFromNXT.html">ReadFromNXT</a>, <a href="Stop.html">Stop</a>, <a href="WaitFor.html">WaitFor</a>, <a href="ResetPosition.html">ResetPosition</a></p> |
|---|
| 55 | <h2>Signature<a name="17"></a></h2> |
|---|
| 56 | <div> |
|---|
| 57 | <ul> |
|---|
| 58 | <li><b>Author:</b> Aulis Telle, Alexander Behrens, Linus Atorf (see AUTHORS) |
|---|
| 59 | </li> |
|---|
| 60 | <li><b>Date:</b> 2008/10/22 |
|---|
| 61 | </li> |
|---|
| 62 | <li><b>Copyright:</b> 2007-2008, RWTH Aachen University |
|---|
| 63 | </li> |
|---|
| 64 | </ul> |
|---|
| 65 | </div> |
|---|
| 66 | <p class="footer"><br> |
|---|
| 67 | Published with wg_publish; V1.0<br></p> |
|---|
| 68 | </div> |
|---|
| 69 | <!-- |
|---|
| 70 | ##### SOURCE BEGIN ##### |
|---|
| 71 | %% SendToNXT |
|---|
| 72 | % Send motor settings to the NXT brick. |
|---|
| 73 | %% |
|---|
| 74 | %% Syntax |
|---|
| 75 | % |SendToNXT(OBJ)| or |OBJ.SendToNXT| |
|---|
| 76 | %% |
|---|
| 77 | % |SendToNXT(OBJ, HANDLE)| or |OBJ.SendToNXT(HANDLE)| |
|---|
| 78 | %% |
|---|
| 79 | %% Description |
|---|
| 80 | % |SendToNXT(OBJ)| or |OBJ.SendToNXT| sends the motor settings in |OBJ| to |
|---|
| 81 | % the NXT brick. |
|---|
| 82 | %% |
|---|
| 83 | % |SendToNXT(OBJ, HANDLE)| or |OBJ.SendToNXT(HANDLE)| uses |HANDLE| to |
|---|
| 84 | % identifiy the connection to use for this command. |
|---|
| 85 | %% |
|---|
| 86 | % For a valid list of properties and how they affect the motors' |
|---|
| 87 | % behaviour, see the documentation for the class constructor |NXTmotor|. |
|---|
| 88 | %% |
|---|
| 89 | %% Limitations |
|---|
| 90 | %% |
|---|
| 91 | % This function has a built-in waiting-period. A pause of 75ms will be |
|---|
| 92 | % made both before and after sending the actual command to the NXT, |
|---|
| 93 | % resulting in a total execution time of about 150ms for this command. |
|---|
| 94 | %% |
|---|
| 95 | % If you send a command to the NXT without waiting for the previous motor |
|---|
| 96 | % operation to have finished, the command will be dropped (the NXT |
|---|
| 97 | % indicates this with a high beep tone). Use the motor-objects method |WaitFor| |
|---|
| 98 | % to make sure the motor is ready for new commands. |
|---|
| 99 | %% |
|---|
| 100 | %% |
|---|
| 101 | %% |
|---|
| 102 | %% See also |
|---|
| 103 | % NXTmotor, ReadFromNXT, Stop, WaitFor, ResetPosition |
|---|
| 104 | %% |
|---|
| 105 | %% Signature |
|---|
| 106 | %% |
|---|
| 107 | % * *Author:* Aulis Telle, Alexander Behrens, Linus Atorf (see AUTHORS) |
|---|
| 108 | % * *Date:* 2008/10/22 |
|---|
| 109 | % * *Copyright:* 2007-2008, RWTH Aachen University |
|---|
| 110 | % |
|---|
| 111 | |
|---|
| 112 | ##### SOURCE END ##### |
|---|
| 113 | --> |
|---|
| 114 | </body> |
|---|
| 115 | </html> |
|---|