Hi I have a model in vensim which needs to reach out to another external model to compute a value. The External model would be built in c++ so it can be accessed using the DLL. Can we pause the simulation till the external function computes the value and sends it back to the vensim model.
Flow of events
1 Run Vensim model
2 Pause it
3 call external model using DLL
4 Compute the data in the External Module
5 Return data to Vensim model
6 Resume vensim.
Is there a way to pause the simulation ?
(I am using Vensim DSS for windows 5.7a)
Thank you
Akshay D
Pausing Vensim
-
- Super Administrator
- Posts: 4592
- Joined: Wed Mar 05, 2003 3:10 am
Are you using Vensim to trigger the external module? If so, you just wait for it to finish.
If you are running the Vensim model using the DLL, you just call vensim_continue_simulation until you need to pause it, run the other module and then call vensim_continue_simulation again.
Hope this helps.
Tony.
If you are running the Vensim model using the DLL, you just call vensim_continue_simulation until you need to pause it, run the other module and then call vensim_continue_simulation again.
Hope this helps.
Tony.
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm