Page 1 of 1

Is there a .NET-wrapper of multicontext DLL?

Posted: Tue May 11, 2010 2:40 am
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!

Posted: Tue May 11, 2010 3:51 pm
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

Posted: Wed May 12, 2010 9:38 am
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.

Posted: Mon May 17, 2010 1:24 am
by lynchyml
thank you Bob, I already sent the email on saturday, please check