Search found 19 matches

by Paul Anim
Thu Mar 21, 2013 2:38 pm
Forum: Vensim
Topic: How to get the List of dataset loaded for simulation
Replies: 4
Views: 3197

Re: How to get the List of dataset loaded for simulation

thanks alot for your help
by Paul Anim
Thu Mar 21, 2013 1:34 pm
Forum: Vensim
Topic: How to get the List of dataset loaded for simulation
Replies: 4
Views: 3197

Re: How to get the List of dataset loaded for simulation

Thanks very much.
I am having a difficulty on how to call the vensim_get_info function especially on how to supply the variable(s) to the function.
Below is my sample code

Code: Select all

Dim testresult As Object
        Dim testbuf As String = ""

        testresult = vensim_get_info(10, testbuf, 500)
by Paul Anim
Thu Mar 21, 2013 10:42 am
Forum: Vensim
Topic: How to get the List of dataset loaded for simulation
Replies: 4
Views: 3197

How to get the List of dataset loaded for simulation

Hi All, I am using MENU>LOAD_RUN|? in a vb.net program to open the dialog box to load the datasets. Below is the sample Vb.net code I used Dim result As Object result = vensim_command("MENU>LOAD_RUN|?") I want to know how to get the (names or counts)of the list of loaded datasets for the s...
by Paul Anim
Fri Mar 08, 2013 3:35 pm
Forum: Vensim
Topic: How to use the SETTING> comand to get the Initial Time
Replies: 2
Views: 2500

How to use the SETTING> comand to get the Initial Time

Hi All,

I am using vensim version 5.10e dll in visual basic. How do i use the Vensim SETTING> command to get the Initial Time and the Final Time and also how to set a new value for both the Initial Time and the Final Time.

Thanks.
by Paul Anim
Wed Jul 27, 2011 10:14 am
Forum: Vensim
Topic: help with vensim_get_data in visual studio 2008
Replies: 5
Views: 5001

Re: help with vensim_get_data in visual studio 2008

So what happens, does the vensim_get_data command work ok? Does it retrieve the values for you? Thanks so much for your help. I finally got the vensim_get_data to work. i tested it by collecting the data to a listbox. Below is the sample in Vb2008 that i used Private Sub Command2_Click(ByVal eventS...
by Paul Anim
Tue Jul 26, 2011 1:34 pm
Forum: Vensim
Topic: How to get the name of the Run in visual studio 2008
Replies: 5
Views: 3802

Re: How to get the name of the Run in visual studio 2008

ok, use the vensim_get_info function, you can get the list of loaded runs using that. Hi, Can you help me with the use of the vensim_get_info? When i tried the code below, a value of 22 is displayed in the textbox . Private Sub cmdInfo_Click(ByVal sender As System.Object, ByVal e As System.EventArg...
by Paul Anim
Tue Jul 26, 2011 11:30 am
Forum: Vensim
Topic: help with vensim_get_data in visual studio 2008
Replies: 5
Views: 5001

Re: help with vensim_get_data in visual studio 2008

So is vensim_get_data working for you? The C++ example that ships with Vensim uses it to get data from runs, have you tried compiling and running that? Hi, I am having a problem with the vesnim_get_data. I am not into C++ but rather VB. So i compiled the vb example that was shipped with vensim. sin...
by Paul Anim
Tue Jul 26, 2011 11:11 am
Forum: Vensim
Topic: How to get the name of the Run in visual studio 2008
Replies: 5
Views: 3802

Re: How to get the name of the Run in visual studio 2008

How are you creating the runs? If you are using a FileOpenDialog, just store the filenames returned from that. Or if you want all .VDF files in a directory, there are plenty of free code examples on the web showing how to do that. Hi, On my interface, I have a button which uses "vensim_command...
by Paul Anim
Mon Jul 25, 2011 4:33 pm
Forum: Vensim
Topic: How to get the name of the Run in visual studio 2008
Replies: 5
Views: 3802

How to get the name of the Run in visual studio 2008

Hi;
I want to be able to get the names of the Runs that I create during simulation.
Is there a way to get the run names of the simulation runs?

Help :( :(
by Paul Anim
Mon Jul 25, 2011 3:28 pm
Forum: Vensim
Topic: help with vensim_get_data in visual studio 2008
Replies: 5
Views: 5001

help with vensim_get_data in visual studio 2008

Hi, I need to display all the variable data after simulation. Output the result of the vensim_get_data to say listbox or Datagrid. the final result of what i need to do is to display the data for each variable in a tabular form for each run. In the long run, I will like to use these data to plot gra...
by Paul Anim
Mon Jul 04, 2011 3:28 pm
Forum: Vensim
Topic: redistribution vensim application developed in VB2008
Replies: 1
Views: 1933

redistribution vensim application developed in VB2008

Hi, I am using vesim 5.10e DSS Commercial license. I have developed a user interface in vb2008 for my vesim model. I deployed the user interface on another machine with the VenDLL32.dll file . When i run the application i received a message that i should reinstall vensim. The application of works on...
by Paul Anim
Tue Jun 28, 2011 5:31 pm
Forum: Vensim
Topic: trackbar to change vensim Constant variabl in Visual Studio
Replies: 5
Views: 4250

Re: trackbar to change vensim Constant variabl in Visual Stu

Thanks Tom,

unfortunately, I am not a vb guru either and eventhough i believe your suggestion would work, I have no idea on how to do that.

Can someone help me with a working vb code? :?
by Paul Anim
Tue Jun 28, 2011 2:30 pm
Forum: Sable
Topic: How to enter a run name in edit box for a simulation
Replies: 6
Views: 13532

Re: How to enter a run name in edit box for a simulation

great that works
thanks :D
by Paul Anim
Tue Jun 28, 2011 12:43 pm
Forum: Vensim
Topic: trackbar to change vensim Constant variabl in Visual Studio
Replies: 5
Views: 4250

trackbar to change vensim Constant variabl in Visual Studio

Hi, I am trying to programme in Visual Studio 2008. I am trying to change vensim Constant variable value using trackbar control in Visual Studio 2008. I have assigned the maximum, minimum and the tick frequency to the trackbar control. When i run the code and use the trackbar control, the values cha...
by Paul Anim
Fri Jun 10, 2011 10:07 am
Forum: Sable
Topic: How to enter a run name in edit box for a simulation
Replies: 6
Views: 13532

How to enter a run name in edit box for a simulation

Hi I am new to vensim and sable. I am designing an interface in sable and I have added a button and an edit box. What i want to do is that I want to enter the run name in the edit box and when i click on the button, the simulation is run and the text in the edit box is saved as the run name. I also ...
by Paul Anim
Thu Jun 09, 2011 11:08 pm
Forum: Vensim
Topic: How to call Vensim 5.4c DLL in VB2008 professional
Replies: 3
Views: 2738

Re: How to call Vensim 5.4c DLL in VB2008 professional

I copied the sample vb6 code to the vb2008 but there seems to be something wrong with e code. Below is the code "Private Declare Function vensim_be_quiet Lib "vendll32.dll" (ByVal quietflag As Long) As Long" Could you please help me with this code and also where shld the vendll32...
by Paul Anim
Thu Jun 09, 2011 1:03 am
Forum: Vensim
Topic: How to call Vensim 5.4c DLL in VB2008 professional
Replies: 3
Views: 2738

How to call Vensim 5.4c DLL in VB2008 professional

Hi to all,

I am using vensim 5.4c and I want to call the dll in vb 2008 but am unable to find my way around. please help.

Thanks