How to create a state chart for created object task executor?

How to create a state chart for created object task executor?

jkhedekar
Enthusiast Enthusiast
56 Views
8 Replies
Message 1 of 9

How to create a state chart for created object task executor?

jkhedekar
Enthusiast
Enthusiast

[ FlexSim 21.0.10 ]

I am using process flow to create a task executor at a control point and making it travel to another control point before destroying it.

I want to get a state chart for those task executor. Is it possible to do that?

0 Likes
Accepted solutions (1)
57 Views
8 Replies
Replies (8)
Message 2 of 9

LongG
Not applicable

I think this process will be ok :1.Use stats.state().profile[][] and other code to save useful data into GlobalTable; 2. Use CalculatedTable to calculate or only as an intermediate step. 3.Use Base Chart Types to show these data.

I am not familiar with CalculatedTable ,but i don't think StatisticsCollector is the availabel methods to get data from GlobalTable .The above process is the only way I can think of since resetting will affect the setting value of the chart.

Message 3 of 9

jason_lightfootVL7B4
Autodesk
Autodesk

Bar or gantt state chart?

0 Likes
Message 4 of 9

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

Here's an example of a state gantt by adding listeners to process flow activities detecting state change (based on the standard state gantt - at the moment the keys are different).

1677575814387.png

StateChartDynamicAGV2.fsm

Message 5 of 9

moehlmann_fe
Observer
Observer

For a bar chart, here's a model that uses a Statistics Collector that works similar to how the default state bar collector in later versions works.

You have to define which states it will track (by number in profile) in the "StateTable" bundle label.

1677585866864.png

FlowItemStateChart_fm.fsm

Message 6 of 9

jkhedekar
Enthusiast
Enthusiast
Can I do this to get blocked state and moving state?
0 Likes
Message 7 of 9

moehlmann_fe
Observer
Observer

You can choose to track any default state by including it in the "StateTable" label. Each state has a define in the format "STATE_XYZ" to get its number. You can type it in the script console to view the value. For example "blocked" has the number 4.

1677607210251.png

The display name is whatever you choose in the second column.

1677607292097.png

1677607303737.png

If you want to combine multiple default states into one value then you would have to alter the label to contain a "normal" table instead of a bundle, so it can hold array values. Then use arrays of possibly more than one value in the first column and sum up the times for each respective state in the "Time" and "Utilization" columns of the Statistics Collector.

0 Likes
Message 8 of 9

jkhedekar
Enthusiast
Enthusiast
Is it possible to do this without having operator1?
0 Likes
Message 9 of 9

jason_lightfootVL7B4
Autodesk
Autodesk

You should be able to remove it from the Group: 'State Gantt Objects'.