]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Add PYTHONPATH and CPM length comments.
authorscipio <scipio>
Wed, 6 Jun 2007 17:58:04 +0000 (17:58 +0000)
committerscipio <scipio>
Wed, 6 Jun 2007 17:58:04 +0000 (17:58 +0000)
doc/html/tutorial/lesson11.html

index 216f59fb276e7fa5097ef6c960776d189a953eb2..bd1a01c8d6b72dae9023f9833af38d39397d9766 100644 (file)
@@ -603,8 +603,9 @@ for i in range(0, 7):
       <p>CPM can use a good deal of RAM: using the entire meyer-heavy
       trace as input has a cost of approximately 10MB per node. You
       can reduce this overhead by using a shorter trace; this will of
-      course reduce simulation fidelity. Future versions of TOSSIM
-      will reduce this greatly through optimization.</p>
+      course reduce simulation fidelity. <u>The trace
+      must be at least 100 entries long, or CPM will not work as it does
+      not have enough data to generate a statistical model.</u> </p>
 
       <p>You can also use 
       <p>The Radio object only deals with physical layer
@@ -898,7 +899,10 @@ java net.tinyos.sim.PropagationModel config.txt
         variables properly. You do this by instantiating a Python
         object that parses the XML file to extract all of the relevant
         information. You have to import the Python support package for
-        TOSSIM to do this:</p>
+        TOSSIM to do this. First, set your PYTHONPATH environment variable
+       to point to <tt>tinyos-2.x/support/sdk/python</tt>. This tells
+       Python where to find the TOSSIM packages. Then, in an interpreter
+       type this:</p>
 
         <pre>
 from tinyos.tossim.TossimApp import *