Using DLL functions in Vensim
Posted: Mon Sep 20, 2010 10:20 am
I want to do some things that I plan to write in a set of DLL files.
It appears that Vensim can be told about my DLL files, and that when defining an auxiliary or level I can then pick them as I would when using a built in function. Some questions about the practicality of this.
1) Will the DL be faster/slower than doing the same job via a small area of the model in a diagramatic way?
2) Does the DLL neet to be written in a special way to be usable by Vensim?
3) If I use an auxiliary that has subscripts then the equation that defines it will also use those subscripts. Would a DLL that replaces that equation return one value ( e.g. be called by Vensim for every member of that auxiliary, or would it be called once by vensim and expect to be passed back all the subscripts in a block.
4) Are there any examples in the tool that could help me?
It appears that Vensim can be told about my DLL files, and that when defining an auxiliary or level I can then pick them as I would when using a built in function. Some questions about the practicality of this.
1) Will the DL be faster/slower than doing the same job via a small area of the model in a diagramatic way?
2) Does the DLL neet to be written in a special way to be usable by Vensim?
3) If I use an auxiliary that has subscripts then the equation that defines it will also use those subscripts. Would a DLL that replaces that equation return one value ( e.g. be called by Vensim for every member of that auxiliary, or would it be called once by vensim and expect to be passed back all the subscripts in a block.
4) Are there any examples in the tool that could help me?