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
Time Series Data Runtime Warnings
Time Series Data Runtime Warnings
- Attachments
-
- GrassGrow.zip
- (20.39 KiB) Downloaded 456 times
Re: Time Series Data Runtime Warnings
Hi -
You're really close. The data is actually OK. You can verify this in the results: 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
Now it should work. You can update the chart by right-clicking, choosing Edit Chart Properties, and changing the selection in the Variables section.
You're really close. The data is actually OK. You can verify this in the results: 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
Now it should work. You can update the chart by right-clicking, choosing Edit Chart Properties, and changing the selection in the Variables section.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Time Series Data Runtime Warnings
Thanks very much Tom - that did the trick!
cheers, Al
cheers, Al
Re: Time Series Data Runtime Warnings
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.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/