Time Series Data Runtime Warnings

A place for Ventity software questions & answers
Post Reply
Amistra
Junior Member
Posts: 12
Joined: Mon Jun 18, 2018 10:57 pm
Vensim version: DSS

Time Series Data Runtime Warnings

Post by Amistra »

Hi, attached is my first (unsuccessful) attempt at using time series data in a model. I used the Wilshire5000 sample for guidance, but clearly I missed something. I'm sure the runtime warning messages have the info I need to sort this out but don't understand what they're telling me. I'd greatly appreciate some assistance.

I am using Ventity 3.0.2 on Windows 10, latest updates installed.

cheers, Al
Attachments
GrassGrow.zip
(20.39 KiB) Downloaded 269 times
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: Time Series Data Runtime Warnings

Post by tomfid »

Hi -

You're really close. The data is actually OK. You can verify this in the results:
vresults.png
vresults.png (45 KiB) Viewed 4310 times
The issue is the references in the Growth entitytype. You have 3:
Grass6
GrassDataID
GrassGrow
(These can be found in the References tab of the Growth inspector.)

GrassDataID is the reference corresponding with the attribute of the same name. It's OK. The other two cause the error messages.
- Grass6 is the one that's actually used to import the data into the Growth entity. However, it has the wrong key - "GrowthID" instead of "GrassData6".
-GrassGrow has the right key (it points to GrassDataID which contains the value "GrassData6"), but it has the wrong target type (Growth instead of Grass6).

You could fix these, but I would do the following instead:
- Delete the two defective references.
- Delete the Grass6.GrassIn reference var on the diagram.
- In the Growth inspector, expand the remaining GrassDataID reference.
- Drag GrassDataID.growing onto the Growth diagram (GrassIn is really redundant, but you could use that instead)
- Update the NewGreen equation
vdata.png
vdata.png (28.06 KiB) Viewed 4310 times
Now it should work. You can update the chart by right-clicking, choosing Edit Chart Properties, and changing the selection in the Variables section.
Amistra
Junior Member
Posts: 12
Joined: Mon Jun 18, 2018 10:57 pm
Vensim version: DSS

Re: Time Series Data Runtime Warnings

Post by Amistra »

Thanks very much Tom - that did the trick!

cheers, Al
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: Time Series Data Runtime Warnings

Post by tomfid »

Great! At some point, we'll have data entity singletons, so you don't have to bother with creating a key value for something that has only one instance anyway, as here.
Post Reply