command script delay

Use this forum to post Vensim related questions.
Post Reply
mrpepe
Junior Member
Posts: 3
Joined: Sat Jul 03, 2021 7:21 am
Vensim version: PLE

command script delay

Post by mrpepe »

Hi
I have used a cmd file in a Matlab code by this command:

SPECIAL>LOADMODEL|tempin.mdl
MENU>RUN|O
MENU>VDF2DAT|1.vdf|2.dat|s.lst

the result file (2.dat) is not accessible inside the code until the code has ended completely. In other hand, it is generated properly but is not accessible for use in next line of code. appreciate for your help.
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: command script delay

Post by Administrator »

You need Vensim DSS to link with Matlab.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
mrpepe
Junior Member
Posts: 3
Joined: Sat Jul 03, 2021 7:21 am
Vensim version: PLE

Re: command script delay

Post by mrpepe »

thank you but i have this problem with DSS version 6.4
it seems the output file (2.dat) remain in PC memory and is released just at the end of code, so the following code lines which comes after vdf2dat line and use 2.dat file are not executed.
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: command script delay

Post by Administrator »

Please update your profile with your correct licence details and we will be happy to help. You registered as a PLE user.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
mrpepe
Junior Member
Posts: 3
Joined: Sat Jul 03, 2021 7:21 am
Vensim version: PLE

Re: command script delay

Post by mrpepe »

Thank you for your kindness. I finally managed to solve the problem
Post Reply