Search found 3549 matches

by Administrator
Thu Apr 06, 2006 6:37 pm
Forum: Vensim
Topic: IF THEN ELSE statement
Replies: 4
Views: 1971

This should work.

Param = IF THEN ELSE (
condition A = 1
:AND: condition B = 1
:AND: ( condition c = 1
:OR: condition D )
, result A
, result B )

All the best,

Tony.
by Administrator
Thu Apr 06, 2006 7:32 am
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 5620

ok, try the attached Microsoft Visual C++ project. It creates the DLL called Fej1023.dll, load this in Vensim and you will have access to your external functions.

Let us know how you get on.

Tony.
by Administrator
Wed Apr 05, 2006 1:17 pm
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 5620

I have removed some of the things you don't need and attached it to this message. It compiles fine using Microsoft Visual C++.

What compiler are you using?

Tony.

[Edited on 5-4-2006 by Administrator]

[Edited on 5-4-2006 by Administrator]
by Administrator
Wed Apr 05, 2006 10:29 am
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 5620

Those are basic C errors, nothing to do with Vensim at all.

If you want to email the C/C++ workspace to me I will see if it compiles ok. My direct email is tony@ventanasystems.co.uk.
by Administrator
Mon Apr 03, 2006 7:39 am
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 5620

What were the error messages?
by Administrator
Wed Mar 29, 2006 5:00 pm
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 5620

That lot is much easier to read in a monospaced font. Just take a look at vensim.h and do a search for fnct_des.

All the best,

Tony.
by Administrator
Wed Mar 29, 2006 4:57 pm
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 5620

You need to look in VENSIM.H for information on that. The relevant parts are below. Hope it helps. Tony. /************************************************************************** Part 3 fuction prototypes and structure definitions specific to external functions ************************************...
by Administrator
Wed Mar 29, 2006 8:40 am
Forum: Vensim
Topic: c language in vensim
Replies: 32
Views: 5620

Hi, Vensim does support calling by address. Look at the PSUM and MATRIX_INVERT functions in the file VENEXT.C (located in 'comp' sub-directory under the Vensim installation). PSUM passes a vector of values to the external function library, MATRIX_INVERT passes a vector and returns a vector. Hope thi...
by Administrator
Wed Mar 22, 2006 7:57 am
Forum: Vensim
Topic: Getting Data from Excel
Replies: 11
Views: 3794

Can you post the simple model and spreadsheet so we can take a look?

Tony.
by Administrator
Tue Mar 07, 2006 9:52 pm
Forum: Vensim
Topic: Loading external files, e.g. pdfs from within a VenApp
Replies: 1
Views: 1084

I think
FILE>SHELL|fileorwebsite
attached to a button should do the trick.

http://www.vensim.com/documentation/html/25037.htm

Hope this helps.

Tony.
by Administrator
Mon Feb 06, 2006 11:19 am
Forum: Vensim
Topic: VENSIM & .DLL
Replies: 3
Views: 1480

Yes, you need to use the external function interface. Chapter 8 of the DSS reference supplement details how to compile and use an external function library. And the example that ships with Vensim is very well commented as well. You write a function that accesses your other DLL, then call that functi...
by Administrator
Tue Jan 31, 2006 9:13 am
Forum: Vensim
Topic: VENSIM & .DLL
Replies: 3
Views: 1480

Hi,

There is more info on the Vensim DLL at
http://www.vensim.com/documentation/vensim.htm

Look in the DSS reference supplement at chapter 11.

It has been many years since I saw any Fortran code so I cannot help with that side of things. Maybe someone else can.

Tony.
by Administrator
Fri Jan 20, 2006 9:43 am
Forum: Vensim
Topic: about dll
Replies: 1
Views: 1011

Because you can program anything into a DLL, there is no reason why you cannot call other models to generate data. I have done it in the past.

I am not aware of anyone programing an external function library in Fortran, maybe someone else can comment.

Tony.
by Administrator
Fri Jan 20, 2006 9:40 am
Forum: Vensim
Topic: editing the model in word
Replies: 2
Views: 1527

When using the document tool, does clicking "Terse" give you what you need?
by Administrator
Tue Dec 13, 2005 8:31 am
Forum: Vensim
Topic: sketches from excel
Replies: 1
Views: 1252

It seems like it should be easy, but I cannot seem to work out a way of getting a handle to a window using VBA. The function you need is vensim_show_sketch, the final parameter you pass to the function needs to be the hWnd of the image/frame where you want the sketch to appear. The only problem is f...
by Administrator
Tue Oct 25, 2005 6:29 am
Forum: Vensim
Topic: GRAPHS IN VENSIM!!!
Replies: 2
Views: 1367

Hi,

Go to the Vensim control panel and click graphs. There you can define exaclty what you want to appear on each one.

Hope this helps.

Tony.
by Administrator
Wed Oct 05, 2005 7:21 am
Forum: Vensim
Topic: Save a forum thread?
Replies: 2
Views: 1797

I think if you just click "File->Save Page As..." if using Firefox or "File->Save As..." if using Microsoft IE it should save it fine as a .html file.

You can always view the page source as well and paste that into a text file, then save it as .html.

Tony.
by Administrator
Thu Sep 22, 2005 7:56 am
Forum: Vensim
Topic: Retrieving time at which something happens
Replies: 4
Views: 2080

Have a look at the 'SAMPLE IF TRUE' function. It should do what you need.

All the best,

Tony.
by Administrator
Wed Sep 21, 2005 2:57 pm
Forum: Vensim
Topic: Sable and Version 5.5 of Vensim.
Replies: 0
Views: 1014

Sable and Version 5.5 of Vensim.

Existing Sable users might experience some errors when opening existing projects using Vensim 5.5.

All you need to do is publish the model file only, and then use the published model with Sable.

Please let us know of any problems.

Tony.
Ventana Systems UK.
by Administrator
Wed Sep 21, 2005 2:57 pm
Forum: Sable
Topic: Sable and Version 5.5 of Vensim.
Replies: 0
Views: 3815

Sable and Version 5.5 of Vensim.

Existing Sable users might experience some errors when opening existing projects using Vensim 5.5.

All you need to do is publish the model file only, and then use the published model with Sable.

Please let us know of any problems.

Tony.
Ventana Systems UK.
by Administrator
Tue Sep 20, 2005 4:02 pm
Forum: Vensim
Topic: DELAY FIXED
Replies: 8
Views: 1989

Try renaming the file to age2.mdl, it should work fine then.

For some reason, when downloading from the forum, files get their extensions mixed up.

Tony.
by Administrator
Tue Sep 20, 2005 7:17 am
Forum: Vensim
Topic: DELAY FIXED
Replies: 8
Views: 1989

I have made a few changes. First, I think you really wanted to delay the birth rate rather than the "0-1" level. By delaying the level, you were removing "0-1" from that level rather than the births as people age. The model I have uploaded is what I think you are after. Run it in Synthesim mode and ...
by Administrator
Mon Sep 19, 2005 3:23 pm
Forum: Vensim
Topic: DELAY FIXED
Replies: 8
Views: 1989

I really need to see a model here. Can you copy the part that is giving negative results into a new model, get that running so that it produces the error and then post it here?

Tony.
by Administrator
Mon Sep 19, 2005 6:26 am
Forum: Vensim
Topic: DELAY FIXED
Replies: 8
Views: 1989

Can you give us the part of the model that is not working? It is probably a very simple fix.

Tony.
by Administrator
Thu Jul 07, 2005 12:47 pm
Forum: Welcome and General Information
Topic: Forum software upgraded.
Replies: 0
Views: 5322

Forum software upgraded.

Hi all,

I have upgraded the forum software today (7th July 2005). This is mainly to apply some security fixes plus some bug fixes.

Please let me know of any problems.

Tony.