Question about import dataset into Vensim

Use this forum to post Vensim related questions.
Post Reply
kong17
Senior Member
Posts: 60
Joined: Wed May 30, 2018 1:12 pm
Vensim version: PRO

Question about import dataset into Vensim

Post by kong17 »

Hello everyone,

I am learning the Optimization in Vensim.
But, when I wanna import dataset, Vensim always report the error.
I followed Venism Help to do it. I don't know what is wrong with that?
I was wondering could anybody help me to solve it?
Thank you very much!

The step from Vensim Help
step.JPG
step.JPG (70.92 KiB) Viewed 3487 times
Found the data from website, saved it by Text and changed to exectric.dat
save.JPG
save.JPG (62.37 KiB) Viewed 3487 times
But, when I imported dataset, it report the error.
result.JPG
result.JPG (43.21 KiB) Viewed 3487 times
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Question about import dataset into Vensim

Post by Administrator »

What menu options are you clicking to import the data?
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
kong17
Senior Member
Posts: 60
Joined: Wed May 30, 2018 1:12 pm
Vensim version: PRO

Re: Question about import dataset into Vensim

Post by kong17 »

Administrator wrote: Fri Feb 15, 2019 12:36 pm What menu options are you clicking to import the data?
Model > Import Dataset
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Question about import dataset into Vensim

Post by Administrator »

Can you upload your file?

I've tried importing it and it worked. You can also try importing the file from
C:\Users\Public\Vensim\Models\UserGuide\CHAP18\CALIBRAT\
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
kong17
Senior Member
Posts: 60
Joined: Wed May 30, 2018 1:12 pm
Vensim version: PRO

Re: Question about import dataset into Vensim

Post by kong17 »

Administrator wrote: Fri Feb 15, 2019 12:55 pm Can you upload your file?

I've tried importing it and it worked. You can also try importing the file from
C:\Users\Public\Vensim\Models\UserGuide\CHAP18\CALIBRAT\
Thank you. It worked. I found the file in C:\Users\Public\Vensim\Models\UserGuide\CHAP18\CALIBRAT\
But, I was wondering how to create the Electric.dat by the data from the website?(https://www.vensim.com/documentation/Mo ... ECTRIC.DAT)

Because, next time I might need to deal the data by myself, not the file that exist directly.
Thank you very much!
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Question about import dataset into Vensim

Post by Administrator »

If you upload your file, I'll take a look at what you did wrong.
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
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: Question about import dataset into Vensim

Post by tomfid »

I think you were importing via Model>Import Dataset...

For .dat format, you want the next menu item, "from .dat format..."
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Question about import dataset into Vensim

Post by Administrator »

Model->Import dataset works ok Tom, I think in this case the file is saved as "electric.dat.txt" rather than "electric.dat".
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
Post Reply