root/tags/version-3.00/RWTHMindstormsNXT/doc/functions/help/OpenAccelerator.html @ 725

Revision 725, 3.8 KB (checked in by atorf, 4 years ago)

Tag 3.00:

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>OpenAccelerator</title>
13      <meta name="generator" content="MATLAB 7.8">
14      <meta name="date" content="2009-07-20">
15      <meta name="m-file" content="script_OpenAccelerator">
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>OpenAccelerator</h1>
22         <!--introduction-->
23         <p>Initializes and sets the mode of the HiTechnic acceleration sensor</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="#8">Examples</a></li>
31               <li><a href="#10">See also</a></li>
32               <li><a href="#12">Signature</a></li>
33            </ul>
34         </div>
35         <h2>Syntax<a name="2"></a></h2>
36         <p><tt>OpenAccelerator(port)</tt></p>
37         <p><tt>OpenAccelerator(port, handle)</tt></p>
38         <h2>Description<a name="5"></a></h2>
39         <p><tt>OpenAccelerator(port)</tt> initializes the input mode of NXT accelerator sensor specified by the sensor <tt>port</tt>. The value <tt>port</tt> can be addressed by the symbolic constants <tt>SENSOR_1</tt> , <tt>SENSOR_2</tt>, <tt>SENSOR_3</tt> and <tt>SENSOR_4</tt> analog to the labeling on the NXT Brick.
40         </p>
41         <p>The last optional argument can be a valid NXT handle. If none is specified, the default handle will be used (call <tt>COM_SetDefaultNXT</tt> to set one).
42         </p>
43         <h2>Examples<a name="8"></a></h2><pre class="codeinput">   OpenAccelerator(SENSOR_4);
44   acc_Vector = GetAccelerator(SENSOR_4);
45   CloseSensor(SENSOR_4);
46</pre><h2>See also<a name="10"></a></h2>
47         <p><a href="GetAccelerator.html">GetAccelerator</a>, <a href="CloseSensor.html">CloseSensor</a>, <a href="COM_ReadI2C.html">COM_ReadI2C</a>, <a href="NXT_LSGetStatus.html">NXT_LSGetStatus</a>, <a href="NXT_LSRead.html">NXT_LSRead</a>, </p>
48         <h2>Signature<a name="12"></a></h2>
49         <div>
50            <ul>
51               <li><b>Author:</b> Linus Atorf (see AUTHORS)
52               </li>
53               <li><b>Date:</b> 2008/09/25
54               </li>
55               <li><b>Copyright:</b> 2007-2009, RWTH Aachen University
56               </li>
57            </ul>
58         </div>
59         <p class="footer"><br>
60            Published with wg_publish; V1.0<br></p>
61      </div>
62      <!--
63##### SOURCE BEGIN #####
64%% OpenAccelerator
65% Initializes and sets the mode of the HiTechnic acceleration sensor
66%%
67%% Syntax
68% |OpenAccelerator(port)|
69%%
70% |OpenAccelerator(port, handle)|
71%%
72%% Description
73% |OpenAccelerator(port)| initializes the input mode of NXT accelerator sensor specified by the sensor
74% |port|. The value |port| can be addressed by the symbolic constants
75% |SENSOR_1| , |SENSOR_2|, |SENSOR_3| and |SENSOR_4| analog to the labeling on the NXT Brick.
76%%
77% The last optional argument can be a valid NXT handle. If none is
78% specified, the default handle will be used (call |COM_SetDefaultNXT| to
79% set one).
80%%
81%% Examples
82   OpenAccelerator(SENSOR_4);
83   acc_Vector = GetAccelerator(SENSOR_4);
84   CloseSensor(SENSOR_4);
85%%
86%% See also
87% GetAccelerator, CloseSensor, COM_ReadI2C, NXT_LSGetStatus, NXT_LSRead
88%%
89%% Signature
90%%
91% * *Author:* Linus Atorf (see AUTHORS)
92% * *Date:* 2008/09/25
93% * *Copyright:* 2007-2009, RWTH Aachen University
94%
95
96##### SOURCE END #####
97-->
98   </body>
99</html>
Note: See TracBrowser for help on using the browser.