Search found 22 matches

by Anna
Thu Apr 20, 2006 4:28 am
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

Now ,it can work.
The bug is that I colse file after returning p.
When I chang the position ('fclose (out) ') and put it before returning p . It work normally.
Thank you for everything you do for me.:D
I bother with you for a period time.
Thank you Tony and Bob.
Thank you very much!
by Anna
Wed Apr 19, 2006 3:26 pm
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

The VC_function is created by myself.I hope the 15 outputs (produced by NETWORK_FUNCTION) can be showed on the vensim so I created the function. But it have problem as I talk on the web. Is there an another writing way to do the same thing?
by Anna
Wed Apr 19, 2006 7:55 am
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

Thank you for LAUJJL and Tony. I don't know why the file pointer "out " is wrong?I chang the file pointer name(out->we) to see if it can be fine but it is not(teh error is the same).This is my test that I put VC on vc++ to run and it is fine. It can get each value in the array. So can you ...
by Anna
Tue Apr 18, 2006 2:19 pm
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

Whether you solve the problem or not,give me any reply ,please.I am worried about it very much.I tried to modify program body to make VC fine but fail. Could anyone help me? My things are too big to attach on the web. I can email my things for you. [Edited on 4-18-2006 by Anna] [Edited on 4-18-2006 ...
by Anna
Tue Apr 18, 2006 11:04 am
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

I found one thing again.When I added the part model which use NETWORK_FUNC to attempt to combine them . The VC_function just can be fine when it accept "int 0 " in its body.So strangly!I email to you again.
by Anna
Tue Apr 18, 2006 9:38 am
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

I found where was the problem!

I found some little problems and modify it .Now "NETWORK" which I made is fine but VC is not fine. Then I did some tests to test where were the problems happen? Because I use VC_FUNCTION 15 times(15 variables will use it) in my model.I tried to reserve one variable and others were deleted,...
by Anna
Thu Apr 13, 2006 1:59 am
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

Sorry,I know you are busy .
I 'm very worried about vensim model can't do I want by adding the network.Can I have any message from you?
Do you get my email on Tuesday?
:(
by Anna
Tue Apr 11, 2006 12:56 pm
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

Thank you for you to help me modify the file. My model can't run when I added it. I email to you .Can you help me to check? I don't know about any c++.Actuality,This was my first time to know what is the dll file and to write neural nework by c . Our lab usually use Fortran and I often feel upset an...
by Anna
Tue Apr 11, 2006 1:14 am
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

Thank you Tony and Bob.Now ,I have 7errors: 1.D:\reserch\model\Fej1023\Fej1023\VENEXT.C(208) : error C2065: 'NETWORK_FUNC' : undeclared identifier 2.D:\reserch\model\Fej1023\Fej1023\VENEXT.C(209) : error C2065: 'VC_FUNC' : undeclared identifier -------------------------------------------------------...
by Anna
Mon Apr 10, 2006 1:40 pm
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

Sorry , I modify the venext.c again.

[Edited on 4-11-2006 by Anna]
by Anna
Mon Apr 10, 2006 8:00 am
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

Wu..Wu...

When I add my neural network (it run well in vc++) and modify somewhere to suit the model that I will build in the future. There are 102 errors .My God! I don't know why it had errors because somewhere that errors mean I thought their were be fine.@@ I email something for you.Please take a look. Tha...
by Anna
Sun Apr 09, 2006 3:51 am
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

Thank you for all what you do ,I got the "fej1023.dll". Then ,I open new a dll project call "dlltest" and put the venext.c and venext.def added to the project.I tried to make a new dll but the error message was"d:\dlltest\venext.c(872) : fatal error C1010: unexpected end of ...
by Anna
Wed Apr 05, 2006 12:36 pm
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

I can't find where I should modify it upstairs.
I don't know where I written wrong.I email the file to you
and thanks for your help.
by Anna
Wed Apr 05, 2006 9:15 am
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

read input file

I do a test in venext.c to check if vensim can open and read external file.I build a function to do this thing.It body is fllowing below :(There is only one value in in.dat) ==================================== 505 int VCTypeCount(int m) 506 { 507 int in ; 508 FILE *IN ; 509 if((IN=fopen("In.da...
by Anna
Mon Apr 03, 2006 1:57 pm
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

Oh ,it 's ok after I modify "double" to "int " and "test_func" to "main_func".But I feel strange why the function's name chang to "main_func" ,it will be ok.The function's name should be named as I wish ,don't they?
by Anna
Mon Apr 03, 2006 2:18 am
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

I wrote a simple function called "test_func"in the venext.c to test if their vales(x and y) exchang.(their value will defind in vensim_dss) But its have many errors . These sentences are what I added: -------------------------------------- #define test_FUNC 23 double test(double x,double y...
by Anna
Wed Mar 29, 2006 3:19 pm
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

[quote] Originally posted by Anna By the way,I want to ask something in the venext.c,for example : {"PSUM"," {vector} , {nelm} ,{nelmlimit} ",3,1,PSUM_FUNC,0,0,0,0}, What do the "1" and "0, 0,0,0" mean? Thanks a lot! Tony Anna^^ [Edited on 3-29-2006 by Anna]
by Anna
Wed Mar 29, 2006 3:17 pm
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

By the way,I want to ask something in the venext.c,for example :
{"PSUM"," {vector} , {nelm} ,{nelmlimit} ",3,1,PSUM_FUNC,0,0,0,0}
^^ ^^^^^^
What do the "1" and "0" mean?
Thanks a lot! Tony

Anna^^
by Anna
Wed Mar 29, 2006 5:02 am
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 14217

c language in vensim

I have already seen Chapter 8 of the DSS reference about external function.I find all external function are return one value.If I want to return many values ,I know to use the way that "call by address" in c language.Can Vensim support the "call by address" capability?That is wha...
by Anna
Mon Feb 06, 2006 8:54 am
Forum: Vensim
Topic: VENSIM & .DLL
Replies: 3
Views: 2819

I have already seen those informations you talk to me.All of examples your company provide express how to use VB,JAVA,..and so on,to call vensim by using vendll32.dll. But What I wnat is to know how to vensim call .dll file(the dll file can input a lot of variables that produce by other model) Do it...
by Anna
Tue Jan 31, 2006 1:07 am
Forum: Vensim
Topic: VENSIM & .DLL
Replies: 3
Views: 2819

VENSIM & .DLL

Sir: Where is the place in Vensim that connect with .dll files. I look for Vensim's help but it says little about that. Do the .dll files which were built in Vensim must be written in C or C++?I can only write dll in Fortran .Do you or someone have some books,guides,or any reference materials to giv...
by Anna
Fri Jan 20, 2006 3:16 am
Forum: Vensim
Topic: about dll
Replies: 1
Views: 1893

about dll

Hi,everyone:
Can Vensim call other models (were not built by vensim) by DLL?In other words,DLL can make other models work to produce data then build its equation.That's DLL function,do I think right?
How to use fortran to build DLL?
Thank you!
Anna