Cannot get Venapp to display GRAPHVAR

Use this forum to post Vensim related questions.
Post Reply
erickber
Junior Member
Posts: 12
Joined: Fri Aug 13, 2010 4:35 pm

Cannot get Venapp to display GRAPHVAR

Post by erickber »

Can anyone explain why this Venapp .vcd file does not display any graphs or display the run name? I am using the Venapp editor and clicking on either "Run Venapp" or "Test Screen". This is the contents of the .vcd file generated by the Venapp editor:

!
:SCREEN SCREEN1
SCREENFONT,Times New Roman|10||0-0-0|-1--1--1
PIXELPOS,0
COMMAND,,,,,,,,"SPECIAL>LOADMODEL|NBIM_0.4.mdl"
COMMAND,,,,,,,,"MENU>RUN1|O"
COMMAND,,,,,,,,"SPECIAL>LOADRUN|Baseline.vdf"
RUNNAME,"",22,33,,,,,"",
TEXTONLY,"Some text",5,13,,,,,"",
GRAPHVAR,"capital investment in biofuel processing",48,6,18,29,,,"",
!

The model NBIM_0.4.mdl *does* run, and the file Baseline.vdf is indeed located in the same folder as this .vcd file and the model file.

Thanks in advance,
Eric
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

I tried this and it works fine for me. Note that Baseline.vdf might be from a model that does not include the variable. You could add the line

COMMAND,,,,,,,,"SIMULATE>RUNNAME|Baseline"

to be sure that is the run that gets executed (actually the LOADRUN command is not necessary, this happens automatically after a simulation).
erickber
Junior Member
Posts: 12
Joined: Fri Aug 13, 2010 4:35 pm

Post by erickber »

Thanks for your reply. Your suggestion didn't solve the problem (sorry), but since it was working for you I took a closer look. It seems that the problem is that I was using a dimensioned variable. When I set it to a specific value for the dimension it did work. This runs correctly:

!
:SCREEN SCREEN1
SCREENFONT,Times New Roman|10||0-0-0|-1--1--1
PIXELPOS,0
COMMAND,,,,,,,,"SPECIAL>LOADMODEL|NBIM_0.4.mdl"
COMMAND,,,,,,,,"MENU>RUN1|O"
COMMAND,,,,,,,,"SIMULATE>RUNNAME|Baseline"
RUNNAME,"*1",22,33,,,,,"",
TEXTONLY,"Some text",5,13,,,,,"",
GRAPHVAR,"capital investment in biofuel processing[biodiesel]",48,6,18,29,,,"",
!

Thanks again,
Eric
erickber
Junior Member
Posts: 12
Joined: Fri Aug 13, 2010 4:35 pm

Post by erickber »

As a side question, if I use SIMULATE>RUNNAME, do I need MENU>RUN1?

Thanks,
Eric
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

RUN1 just guarantees the loaded position for the current run is first. Other than that it is the same as RUN. Since First is the default position to load in anyway, unless you have changed that setting it should not matter.
erickber
Junior Member
Posts: 12
Joined: Fri Aug 13, 2010 4:35 pm

Post by erickber »

Thanks!
Post Reply