Search found 11 matches

by aksdax
Wed Aug 06, 2008 7:58 pm
Forum: Vensim
Topic: External Functions
Replies: 10
Views: 5553

Hi, Still the result is the same. I generally create just one variable and try and test my function. Could it be that the copy that i have is corrupt ? everything else works just fine.... I could understand if only my code did not work or the dll i create does not work but in this case the code and ...
by aksdax
Wed Aug 06, 2008 1:36 am
Forum: Vensim
Topic: External Functions
Replies: 10
Views: 5553

other file

by aksdax
Wed Aug 06, 2008 1:32 am
Forum: Vensim
Topic: External Functions
Replies: 10
Views: 5553

Hi, I have tried to install vensim on another PC and I re-complied the dll and I ran the debugger I am posting the screenshot of the debugger. you can see that the values passed by vensim is 0.00000 for both the functions cosine() and inrange() The code and the visual project is the one which is pro...
by aksdax
Mon Aug 04, 2008 7:47 pm
Forum: Vensim
Topic: External Functions
Replies: 10
Views: 5553

ok so the dll works may be there is some problem with the installed copy of vensim. I will try it on some other pc.

Thank you
Akshay D.
by aksdax
Mon Aug 04, 2008 5:57 pm
Forum: Vensim
Topic: External Functions
Replies: 10
Views: 5553

I tried passing int as well as float still the result is the same.
Do I need to add any library files in the project while build it.
e.g. vensim.lib
by aksdax
Mon Aug 04, 2008 5:45 pm
Forum: Vensim
Topic: External Functions
Replies: 10
Views: 5553

Still using %lf does not help printing the right values.
Float or double nither of them is being passed. It still prints 0.00000
I tried compling the DLL using the batch file provided but still the DLL behaves the same.
I have tried re installing the software but it does not help.
by aksdax
Sat Aug 02, 2008 11:48 pm
Forum: Vensim
Topic: External Functions
Replies: 10
Views: 5553

External Functions

Hi, I am trying to build a dll using the venext.c however when I run the dll in vensim it does not pass double values. I write the value passed in a text file. every time a double is passed it write the value passed as 0.0000 but when I pass a literal/string it is passed properly. e.g if i pass cosi...
by aksdax
Mon Jul 07, 2008 12:08 pm
Forum: Vensim
Topic: DDE
Replies: 4
Views: 3349

Thank you for your quick response. My confusion with regard to using JNI is that the call needs to be initiated by a java module. In my case it is being called from vensim external function which would be c++ ( through the DLL) then I would need to have observers which would notify the java program ...
by aksdax
Sun Jul 06, 2008 10:29 pm
Forum: Vensim
Topic: DDE
Replies: 4
Views: 3349

DDE

Hi, I wanted to know if I can use DDE to exchange data from a java application. I have a small application which I built in java which implements few algorithms. I want vensim model to run the java application and get those values while the simulation is running. e.g I start the simulation, for some...
by aksdax
Wed Jul 02, 2008 2:39 pm
Forum: Vensim
Topic: Pausing Vensim
Replies: 3
Views: 3046

I did read the manual but it was bit unclear to me as i have never used Vensim before.
But your clarification would help :).

Thank you for your reply.
Akshay D.
by aksdax
Wed Jul 02, 2008 7:07 am
Forum: Vensim
Topic: Pausing Vensim
Replies: 3
Views: 3046

Pausing Vensim

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 ev...