# Installation instructions for Linux:
* Untar the file SHM.tar.
* Run install.sh as follows:
./install.sh "Tiny OS installation directory"
e.g.
./install.sh /opt/tinyos-1.x
* Go to "Tiny OS installation directory"/tools/java/net/tinyos/sim
and type "make". This should compile the plugin into TinyViz.
* Run TinyViz you should see a plugin of the name "SHM ADC Readings".
* Go to "Tiny OSinstallation directory"/apps/Sense and type "make pc"
* Ensure that "Tiny OS installation directory"/tools/java is present in your CLASSPATH variable
NOTE: This is an important step since the JAVA server used by MATLAB, resides in this path.
* Copy the MATLAB files from the untarred SHM.tar to a matlab work folder.
* The installation is complete.
# Installation instructions for Windows:
* The windows installation will be done under the Cygwin environment,
(Cygwin is installed with the TinyOS installation).
* Open a cygwin command prompt and follow the instructions for the linux installation.
The figure illustrates the various components that are involved in the integration of a network and environment simulator. The three main components are:
|
![]() Figure 1. Giving the various components involved in the integration of Network and Environment Simulators |
The usage of the integrated Network and Environment simulator is as follows:
![]() Figure 2. MATLAB response for single shot mode. |
Figure 3. MATLAB response for multi shot mode. |
For further information, please contact Avinash Sridharan (asridhar@usc.edu), Bhaskar Krishnamachari (bkrishna@usc.edu)