Applicable VersionsNetSim StandardNetSim Pro


Applicable Releasesv12
v13


The following message i.e NetSim Crashing at 0% displayed while running Dynamic Clustering Simulation interfacing with MATLAB.





Reason

This could be because of following reasons

1. Clustering.m file isn't placed in MATLAB Path
2. Environment Variable isn't set
3. MATLAB Installation - Statistics and Machine Learning Toolbox missing



Solution:

1. Clustering.m file isn't placed in MATLAB Path:
Place clustering.m present in the MATLAB_Code folder inside the root directory of MATLAB
If you have installed MATLAB in default location then for
MATLAB  R2016a its “C:\Program Files\MATLAB\R2016a”
MATLAB  R2017b and above its “C:\Program Files\MATLAB\R2017b\bin\win64”

2. Environment Variable isn't set
Create a user variable with the name of MATLAB_PATH and provide the path of the installation directory of user’s respective MATLAB version.
User Variable:
C:\Program Files\MATLAB\R2016a
Make sure that the following directory is in the PATH(Environment variable)
System Variable:
C:\Program Files\MATLAB\bin\win64

3. MATLAB Installation - Statistics and Machine Learning Toolbox missing
Dynamic Clustering project requires Statistics and Machine Learning Toolbox to be installed. Please install the toolbox and then perform Dynamic Clustering Using NetSim




Additional Links:

Dynamic_Clustering_in_WSN_v12.1.pdf (tetcos.com) 

Dynamic_Clustering_in_WSN_v13.0.pdf (tetcos.com)