root/branches/livecd/RWTHMindstormsNXT/doc/functions/help/NXT_WriteIOMap.html @ 465

Revision 465, 4.4 KB (checked in by behrens, 5 years ago)

NXTmotor: remove "silent toggling" and move adaptive default settings in constructor
SendToNXT: add warning of ignoring Speedregulation in the case of MultipleMotorPorts?, disabled brakeAtTachoLimit=0 warning, add missing %

Line 
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      <!--
9This HTML is auto-generated from an M-file.
10To make changes, update the M-file and republish this document.
11      -->
12      <title>NXT_WriteIOMap</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_WriteIOMap">
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_WriteIOMap</h1>
22         <!--introduction-->
23         <p>Writes the IO map to the given module ID</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="#14">See also</a></li>
32               <li><a href="#16">Signature</a></li>
33            </ul>
34         </div>
35         <h2>Syntax<a name="2"></a></h2>
36         <p><tt>NXT_WriteIOMap(mod_id, offset, n_bytes, data)</tt></p>
37         <p><tt>NXT_WriteIOMap(mod_id, offset, n_bytes, data, handle)</tt></p>
38         <h2>Description<a name="5"></a></h2>
39         <p><tt>NXT_WriteIOMap(mod_id, offset, n_bytes, data)</tt> write the data <tt>bytes</tt> to the given module ID (<tt>mod_id</tt>). The total number of bytes is given by <tt>n_bytes</tt>. The <tt>offset</tt> parameter determines the index position of the first byte.
40         </p>
41         <p><tt>NXT_WriteIOMap(mod_id, offset, n_bytes, data, handle)</tt> sends the IO map write command over the specific NXT handle <tt>handle</tt> (e.g. serial handle (PC) / file handle (Linux)).
42         </p>
43         <p>If no NXT <tt>handle</tt> 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">   OutputModuleID = 131073
47</pre><pre class="codeinput">   NXT_WriteIOMap(OutputModuleID, 0, 30, bytes;
48</pre><pre class="codeinput">   handle = COM_OpenNXT(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>);
49   OutputModuleID = 131073
50   NXT_WriteIOMap(OutputModuleID, 0, 30, bytes, handle);
51</pre><h2>See also<a name="14"></a></h2>
52         <p><a href="NXT_ReadIOMap.html">NXT_ReadIOMap</a>, <a href="COM_GetDefaultNXT.html">COM_GetDefaultNXT</a></p>
53         <h2>Signature<a name="16"></a></h2>
54         <div>
55            <ul>
56               <li><b>Author:</b> Alexander Behrens (see AUTHORS)
57               </li>
58               <li><b>Date:</b> 2008/05/22
59               </li>
60               <li><b>Copyright:</b> 2007-2008, RWTH Aachen University
61               </li>
62            </ul>
63         </div>
64         <p class="footer"><br>
65            Published with wg_publish; V1.0<br></p>
66      </div>
67      <!--
68##### SOURCE BEGIN #####
69%% NXT_WriteIOMap
70% Writes the IO map to the given module ID
71%%
72%% Syntax
73% |NXT_WriteIOMap(mod_id, offset, n_bytes, data)|
74%%
75% |NXT_WriteIOMap(mod_id, offset, n_bytes, data, handle)|
76%%
77%% Description
78% |NXT_WriteIOMap(mod_id, offset, n_bytes, data)| write the data |bytes| to the given module ID (|mod_id|).
79% The total number of bytes is given by |n_bytes|. The |offset| parameter determines the index
80% position of the first byte.
81%%
82% |NXT_WriteIOMap(mod_id, offset, n_bytes, data, handle)| sends the IO map write command
83% over the specific NXT handle |handle| (e.g. serial handle (PC) / file handle (Linux)).
84%%
85% If no NXT |handle| is specified the default one (|COM_GetDefaultNXT)| is used.
86%%
87% For more details see the official LEGO Mindstorms communication protocol.
88%%
89%% Examples
90   OutputModuleID = 131073
91   NXT_WriteIOMap(OutputModuleID, 0, 30, bytes;
92%%
93   handle = COM_OpenNXT('bluetooth.ini','check');
94   OutputModuleID = 131073
95   NXT_WriteIOMap(OutputModuleID, 0, 30, bytes, handle);
96%%
97%% See also
98% NXT_ReadIOMap, COM_GetDefaultNXT
99%%
100%% Signature
101%%
102% * *Author:* Alexander Behrens (see AUTHORS)
103% * *Date:* 2008/05/22
104% * *Copyright:* 2007-2008, RWTH Aachen University
105%
106
107##### SOURCE END #####
108-->
109   </body>
110</html>
Note: See TracBrowser for help on using the browser.