question

Tuan avatar image
0 Likes"
Tuan asked Andrew O commented

Experimenter perforcement measures

@Kavika F

Hello

another.png

How to return the model time when the last item is processed??

socket new.fsm

FlexSim 20.0.10
experitmenter
another.png (17.0 KiB)
socket-new.fsm (101.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.

Andrew O avatar image Andrew O commented ·

Hi @Tuan, was Jason Lightfoot'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 unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

Record every item finishing time in a global variable or label or node somewhere (the function time() will give you the total model time units). In your pfm read and return that value.

· 6
5 |100000

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

Tuan avatar image Tuan commented ·

@Jason Lightfoot

How to do it?

Can you please show me?

Thank you!!

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Tuan commented ·

Here's the documentation for Global Variables - the manual is a great resource for anyone wanting to know how to do stuff , especially students, since they can demonstrate that they have found the solution themselves.

Find the point in your model where each item is finished and in a trigger corresponding to that object/event set your global variable to time().

0 Likes 0 ·
Tuan avatar image Tuan Jason Lightfoot ♦♦ commented ·

@Jason Lightfoot

I am a novice

Asked after reading the documentation

I don't know how to solve

0 Likes 0 ·
Show more comments