question

Trex avatar image
0 Likes"
Trex asked Joseph Gillespie commented

How to get state stats of Task executer in a interval of time for defined period

Here I have a task executer in my model. Model run time is for a week.

I want to take state(idle, blocked, utilize..) data on hourly basis for a task executer.

Can you suggest me, how can I perform it.

As I tried with dashboards, but I cant customize them on hourly basis for a run of a week.

Creating dashboard for each hour will be a strain process

FlexSim 19.0.2
task executertimestates
5 |100000

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

1 Answer

Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered Steven Hamoen commented

@Trex I would take a userevent, let it fire every hour and first call would be "updatestates()" and then get the time in each state and write the difference with the previous amount in a table.

· 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.

Trex avatar image Trex commented ·

sample-model-01.fsm

@steven.hamoen

Thank you Steven, I tried with the updatestates() command, but unfortunately I am not able to fetch the time in the table.

Enclosed is the model. Can you let me know how will I be able to get the time in table.

0 Likes 0 ·
sample-model-01.fsm (34.4 KiB)
Steven Hamoen avatar image Steven Hamoen Trex commented ·

@Trex

Attached is the model. I have created the complete userevent and a new table with a onreset trigger to empty it out again.

trexsamplemodel.fsm

0 Likes 0 ·
trexsamplemodel.fsm (35.1 KiB)