question

Borja Lorenzo avatar image
0 Likes"
Borja Lorenzo asked Felix Möhlmann commented

input vs time for sink to dasboard using statics collector

Hello
In the attached model, the goal is to understand the number of completed orders in a Jidoka system versus a non-Jidoka system, as well as to observe the process times of each process and the occupancy of the buffers preceding each process.

As a result of updating the statistics of the object properties, the "input vs time" option is not available, as indicated by @Jordan Johnson in: https://answers.flexsim.com/answers/144684/view.html.

Despite obtaining a valid result using the solution from Jordan, I can only see it in table mode. The line view doesn't work for me, and this solution only allows viewing in separate tables/graphs, not unified ones.

I have tried to follow the instructions from @Felix Möhlmann in: https://answers.flexsim.com/answers/117431/view.html, but I can't get the results to display as they do in the Legacy graph of the Dashboard (Legacy).

Could you help me understand what I am doing wrong? Attached is the model.
In the attached model, I have tried to create a combined line chart (from "Base Chart Types") for the two sinks. I also tested it with just one sink, but it doesn't work for me.

Additionally, in the Dashboard (Legacy), a legacy line graph can be seen for the number of completed orders in both systems. Is it possible to obtain a table with the final values at the end of the period? It can be inferred that they fall in the same values as observed in the tables of the Dashboard (current), but I wanted to know how to view the combined data of both sinks in table mode.

20240729_CP11_libro_FlexSim_Jidoka_1.fsm

FlexSim 24.1.1
statistic collectorinput vs timelean
· 2
5 |100000

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

Felix Möhlmann avatar image Felix Möhlmann commented ·

Your model didn't upload successfully. Could you try to attach it again?

I can already answer the last part of your question though: You can use an Output chart in table format to view the throughput of all objects linked to the chart.

capture1.png

0 Likes 0 ·
capture1.png (15.7 KiB)
Borja Lorenzo avatar image Borja Lorenzo Felix Möhlmann commented ·

Thank you Felix
But in General (legacy) doesn't exist this type tab grahp
1722257637185.png

I'm checking the attached again?


0 Likes 0 ·
1722257637185.png (5.8 KiB)

1 Answer

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Felix Möhlmann commented

Here's the model with an updated Statistics Collector. It is important to understand how charts in FlexSim display data from a collector's table. You tried to create a table with one column per sink. What you need though is one column that denotes the sink and one column for the value. The chart only plots data from one column over another column. You can split this data into different colors by using a third column that differentiates the rows from each other and whose values will be used in the chart's legend.

(The only chart types that can plot multiple columns per row are Bar or Pie charts.)

20240729-cp11-libro-flexsim-jidoka-2.fsm

Yes, the Output chart is not available as a legacy chart. I didn't know this was important. It does show what you asked: the total input into both sinks in a single table.


· 10
5 |100000

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

Borja Lorenzo avatar image Borja Lorenzo commented ·

Hello

It works almost perfectly for number of order but I obtened that message by Compiler Console.

Flexscript Error MODEL:/Tools/StatisticsCollectors/Pedidos Completados>variables/columns/Time/valueNode Line 6 Undefined variable None being used.

Flexscript Error MODEL:/Tools/StatisticsCollectors/Pedidos Completados>variables/columns/Time/valueNode Line 6 Could not resolve correct operator for construct operation. Left side type is Variant&, right type is (invalid)

Flexscript Error MODEL:/Tools/StatisticsCollectors/Pedidos Completados>variables/columns/Time/valueNode

Could not finish parsing because of previous errors.


I traied to copy the settings but that's happend. What could it be?.


20240729_CP11_libro_FlexSim_Jidoka_2.fsm


I will try another statistics.



0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Borja Lorenzo commented ·

You typed in "None" in the Event Value field which gets interpreted as a (not defined) variable in the code. The "None" you see there normally is a placeholder value that appears if the field is actually empty.

1722269457479.png

0 Likes 0 ·
1722269457479.png (3.4 KiB)
Borja Lorenzo avatar image Borja Lorenzo Felix Möhlmann commented ·


Hello,

In your example, "None" also appears in Event Value, but in your model, that error does not occur. What I did was delete "None" and upon applying it, "None" was rewritten automatically. I also did another test by manually rewriting "None". With both tests, the error message mentioned no longer appears.

I don't know what was wrong, but now it works fine.

Felix, I wanted to ask how I can better understand how to configure these

Static Collectors: data.rowValue.as(Object).stats.input.value

StatisticsCollector.getID(data.rowValue)

Is there any guide, practical cases, tutorials, or more detailed information to learn how to handle it?

Thank you for your invaluable help.

Best regards.

0 Likes 0 ·
Show more comments