Time series data into Vensim
Posted: Fri Oct 30, 2020 4:09 pm
Hi,
I would like to read time series data into Vensim. The model is subscripted and the text file I have does not contain all the variables. What is the best approach for getting the data in?
As a simple example I have this data in a text file:
Time 0 1 2 3 4 5
Variable [AAA] 1 3 5 2 5
Variable [CCC] 3 5 2 5 6
(ie Variable [BBB] is missing)
I tried converting this data into a VDF file and then using the GET VDF DATA, but Vensim wants Variable [BBB] to be present. Similarly, the GET DIRECT DATA function wants all the variables to be there as you only specify the first row with the data in it. The other complication is that I do not know what order the variables will be in and what will be missing. This is why I has hoping the GET VDF DATA function would work as Vensim queries the .vdf file.
Any help very appreciated!
I would like to read time series data into Vensim. The model is subscripted and the text file I have does not contain all the variables. What is the best approach for getting the data in?
As a simple example I have this data in a text file:
Time 0 1 2 3 4 5
Variable [AAA] 1 3 5 2 5
Variable [CCC] 3 5 2 5 6
(ie Variable [BBB] is missing)
I tried converting this data into a VDF file and then using the GET VDF DATA, but Vensim wants Variable [BBB] to be present. Similarly, the GET DIRECT DATA function wants all the variables to be there as you only specify the first row with the data in it. The other complication is that I do not know what order the variables will be in and what will be missing. This is why I has hoping the GET VDF DATA function would work as Vensim queries the .vdf file.
Any help very appreciated!