question

dvajda avatar image
0 Likes"
dvajda asked Jeanette F commented

Staytime with zones and subflows

Hello,

I'm measuring how much time tokens need from one part of the processflow to the other. The problem is that statistics collector doesn't measure staytime of the tokens entering subflows. I'm also trying to export statistics collector data to an external excel file.

+ I would like to know how to collect current simulation time in seconds with statistics collector. I tried Model.dateTime method, but I want the output to be seconds only without date, hours and minutes.


zavrnitev4_1.fsm

FlexSim 24.1.0
subflowstatistic collector
zavrnitev4-1.fsm (254.8 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.

Hi @dvajda, 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
1 Like"
Felix Möhlmann answered

The tokens in the subflows are not the ones that entered the zone. So with the default settings, you will get an error message when they enter an "Exit Zone" activity.

Error: A token is leaving (possibly by proxy) without entering zone "..." in process flow "..."

Either move the "Exit Zone" activities to follow after the "Run Sub Flow". Or change the settings that the sub flow tokens exit the zone as a proxy for their parent token.

1713255392788.png

To get the model time, use "Model.time" and set the display format to "raw".

1713255561375.png


1713255392788.png (8.5 KiB)
1713255561375.png (9.8 KiB)
5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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