Please enable JavaScript to view this site.

Vensim Help

The compiled simulation and external function source files are installed into the same directory.   The file vensim.h is used by both.  The following files relate to compiled simulations:

•simext.c - the source code connecting Vensim to the model C equations. simext.c is included by the generated mdl.h, and so reaches every generated C file; it in turn includes vensim.h. It contains limited internal documentation.
•sim.def - the definition file defining which functions are exported from the created DLL.
•vensim.h - an include file required by simext.c defining the different types and structures used in these files.
•MDLDP64.BAT, MDLDP.BAT, mdl.bat, mdlorig.bat - batch files used to compile the generated C and create the DLL in support of compiled simulation.  64-bit Vensim uses MDLDP64.BAT; the others are for older 32-bit builds. mdlorig.bat is kept as a reference if you are changing one of them.  On the Mac the equivalent script is mdldp.macx.