Hi,
I'm trying to control Vensim from Excel with a DDE in VB, but I can't find how to run one step of the simulation, like in games. Does anyone knows how to do that?
Thanks!!
Run Step by Step from DDE
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm
Well, I have solved the problem of running step by step with the vensim_start_simulation and vensim_continue_simulation functions, but I still can't get the value of a variable without running the complete simulation, it seems that vensim doesn't save that information before Final Time.
Is there any way of getting values from vensim variables in each step?
Thanks!
Camila.
Is there any way of getting values from vensim variables in each step?
Thanks!
Camila.
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm
The only value I can get in each step is Time. I have tried using vensim_get_val and Application.DDERequest for other variables, the first one returns 0 unless I have run the complete simulation, and the other, using the time value I get with vensim_get_val, does not return any value.
Both of them work well when I have run the complete simulation, but I need to get the data before that.
Both of them work well when I have run the complete simulation, but I need to get the data before that.
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm