Is there a .NET-wrapper of multicontext DLL?

Use this forum to post Vensim related questions.
Post Reply
lynchyml
Senior Member
Posts: 70
Joined: Wed Aug 26, 2009 8:36 am

Is there a .NET-wrapper of multicontext DLL?

Post by lynchyml »

I have installed the Multicontext.dll and the "VensimMCTester.java" have been run successfully. But I want to use multicontext.dll in asp.net environment.
Is there a .NET-wrapper of vendlstc.dll like vensim.jar that used in java environment.It couldn't be better if you can provide a .net example like "VensimMCTester.java".


The "VensimMCTester.java" console is here:

Vensim MultiContext Silent DLL Version 5.9ex5
try a context 0 simulation
Contant1 at time 0 in base run is 1.1234568
Contant1 at time 0 in other run is 5.0
Test simulation on a non exististent context - should fail
Failed to simulate on conext 3
Testing run on context 1
Contant1 at time 0 in base run is 1.1234568
Contant1 at time 0 in other run is 5.0
Testing run on context 2
Contant1 at time 0 in base run is 1.1234568
Contant1 at time 0 in other run is 5.0
Testing run on context 3
Contant1 at time 0 in base run is 1.1234568
Contant1 at time 0 in other run is 5.0
Testing run on context 4
Contant1 at time 0 in base run is 1.1234568
Contant1 at time 0 in other run is 5.0
Testing run on context 5
Contant1 at time 0 in base run is 1.1234568
Contant1 at time 0 in other run is 5.0
Launching thread 0
Launching thread 1
Launching thread 2
Launching thread 3
Launching thread 4
Contant1 at time 0 in base run is 1.1234568
Contant1 at time 0 in other run is 5.0
Finishing with cid 2
Contant1 at time 0 in base run is 1.1234568
Contant1 at time 0 in base run is 1.1234568
Contant1 at time 0 in base run is 1.1234568
Contant1 at time 0 in other run is 5.0
Contant1 at time 0 in other run is 5.0
Finishing with cid 1
Contant1 at time 0 in other run is 5.0
Finishing with cid 3
Finishing with cid 4
Contant1 at time 0 in base run is 1.1234568
Contant1 at time 0 in other run is 5.0
Finishing with cid 5


thank you!
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Post by tomfid »

Can't the C example be brought into the latest MSVC? (I haven't tried, but suspect that it's straightforward).

Incidentally, MIT's Climate Collaboratorium has posted java code for wrapping the multicontext .dll to serve a model. They're running entirely on Linux with the shared library version of the .dll.

Tom
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

I am working on an asp.net MVC example.

Meaintime, the C# example has the basic wrapper code, though not with the multi context functions. If you send me an email I can send you that file updated for the additional calls.
lynchyml
Senior Member
Posts: 70
Joined: Wed Aug 26, 2009 8:36 am

Post by lynchyml »

thank you Bob, I already sent the email on saturday, please check
Post Reply