No "Variables in range" for History Data

Discussion about the use of Simantics System Dynamics
Post Reply
Berber00
Posts: 4
Joined: October 22nd, 2015, 7:31 pm

No "Variables in range" for History Data

Post by Berber00 » October 22nd, 2015, 7:43 pm

G'Day,

congrats to the so far quite elaborate SysDyn modeling environment! Have started to play around a little, and did hit a boundary:

I have
1. set up a spreadsheet and populated with test data (columns named the same as the diagram variables),
2. added a History Data sheet to experiments,
3. filled in the properties window with the range

.....BUT do not get the variables displayed in the "Variable in range" box- thus the historical data is also not shown on the graph.

Would anyone have a clue why that is?

Thanks for helping,
Rick
Last edited by Berber00 on February 22nd, 2018, 8:41 am, edited 1 time in total.
Berber00
Posts: 4
Joined: October 22nd, 2015, 7:31 pm

Re: No "Variables in range" for History Data

Post by Berber00 » October 23rd, 2015, 7:55 pm

Hi,

playing a little more with the tool I found out, that arrays that are supposed to be imported via a spreadsheet also do not work. I do get the error message " -TestArray[Enum1.size]: No value for TestSheet.E2_G2" although there is data in the cells an the respective TestArray=TestSheet(E2:G2)....

Might there be an array/spreadsheets problem in the libraries? Or am I missing something here completely?

Thanks for any input,
Rick
jkauttio
Site Admin
Posts: 5
Joined: February 13th, 2014, 1:41 pm

Re: No "Variables in range" for History Data

Post by jkauttio » October 26th, 2015, 10:31 am

Hi, and sorry for the delayed reply (I had somehow completely overlooked this topic).

It seems like the spreadsheets are actually somehow broken in the current version of the tool. I also tried to get the history dataset functionality to work and it just throws an exception even when the data in the spreadsheet and the range are both correct. We'll have to figure out what has caused this but it might unfortunately take some time because all the developers are currently preoccupied with other things.

Basically the same goes for your second point. Reading individual values from the spreadsheet seems to work (at least occasionally), but reading arrays seems to be broken. This is a bug in the Modelica code generation which is hopefully easier to fix.

I'll try to remember to post here again once the issues are resolved in the latest nightly builds.
Berber00
Posts: 4
Joined: October 22nd, 2015, 7:31 pm

Re: No "Variables in range" for History Data

Post by Berber00 » October 27th, 2015, 9:45 am

G'Day,

thanks for the reply....correct, single value/cell import does work.....looking forward to see the fix, since the spreadsheet import and export are quite nifty functions.

Cheers, Rick
Fillederien
Posts: 1
Joined: May 24th, 2017, 12:31 pm

Re: No "Variables in range" for History Data

Post by Fillederien » May 24th, 2017, 12:39 pm

Hi,

I'm also facing problem with getting values from spreadsheets to array variables. Is there any solution?
Tuomas Miettinen
Site Admin
Posts: 31
Joined: March 11th, 2013, 3:14 pm

Re: No "Variables in range" for History Data

Post by Tuomas Miettinen » May 29th, 2017, 2:51 pm

I'm afraid our development has been targeted toward other features lately, so there is most likely no fix for this problem.
Berber00
Posts: 4
Joined: October 22nd, 2015, 7:31 pm

Re: No "Variables in range" for History Data

Post by Berber00 » September 11th, 2017, 3:21 pm

Hi,
sorry, but not following up a pretty basic import error seems rather odd.......
Cheers, Rick
Post Reply