question

Sri avatar image
0 Likes"
Sri asked Logan Gold commented

Time Plot generates a single point instead of continuous line.

capture-5-copy.png

Hello,

I am trying to create a time plot for the first row values of the table. Value vs Time ( as highlighted in the global table). The values in the cell are changing dynamically and I want to plot that change over time. However, there is only a single dot that is being generated and a line isn't generated inspite of the draw style option in the properties of the plot being "Line". I changed the Time value to date and time format and yet it doesn't work. The time value in the global table is a discrete number. ( generated by the "CURRENT_DAY" command).

FlexSim 22.2.0
querycalculated tabletime plot
capture-5-copy.png (226.2 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Logan Gold avatar image Logan Gold ♦♦ commented ·

Hi @Sri, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Sri commented

A Calculated Table doesn't store values. It only contains the current result of the query.

You need to use a Statistics Collector instead. Which in this case you don't have to build yourself, necessarily. Change the table cell into a Tracked Variable.

capture1.png

Then link it to a Tracked Variable Line Chart

capture2.png


capture1.png (18.8 KiB)
capture2.png (15.8 KiB)
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Sri avatar image Sri commented ·
Hello Felix,

Thank you. I shall try this and see if it works.

0 Likes 0 ·
Sri avatar image Sri Sri commented ·
Hello, It still doesn't plot the graph inspite of assigning the datatype as tracked variables.
0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Sri commented ·
Can you upload your model or share screenshots of the table and chart settings?
0 Likes 0 ·
Show more comments