Introduction
OpenVSM is a model sumulation engine with C and Lua API for Proteus 7/8 CAD Written in C and gcc-ready (mingw/cygwin) for Linux and Windows
- You can create your model as standalone DLL or use DLL and Lua script together
- Function prototypes have the same syntax in both API
- Designed with hope to make simulation as simple as possible for electronics enthusiasts Visit 'example' directory for sample project files
Installation
Windows users
- Issue You can change the name of resulted dll:
1 mingw32-make OPENVSMLIB=test
- Copy lua53/lua.dll to %windir%\system32 directory
- Create environment variable containing path to the script directory:
1 setx LUAVSM
"C:\script\"
Linux users (DLL build only)
- Issue or in case you want to change the library name
Usage
- At the moment you created openvsm library and should place it into MODELS directory of Proteus If you created your model as standalone C library, you don't need to do anything. But if you use Lua for prototyping, the model script should be placed into directory you created previously.
- The name of the script should have the following format: DLL_FILENAME.lua For example, if your dll is 'device.dll', the script should be named 'device.dll.lua'