question

Min Z6 avatar image
0 Likes"
Min Z6 asked Jeanette F commented

Reset throughput of a processor to zero during the run

After throughput in a processor reaches to a certain value, say 1000, I want to reset the throughput value to zero and record the profile w.r.t. time again. How can I do that?

FlexSim 20.2.3
trigger
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Min Z6, was Jordan Johnson'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

·
Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered

When it comes to recording data, we usually avoid resetting the original value on the object. It tends to cause pain down the road. Instead, we basically make a copy, increment it whenever the throughput should increment, and then reset that value.

From your question, it sounds like you want a chart like this:

1642014939815.png

You can see that once the throughput gets to the limit (100 in this case) then counting starts back at one. I did this with a statistics collector, that listens for objects leaving the processors. It remembers how many times that event has fired, and keeps a count for each processor (on a row label). If that count gets above the threshold, it gets set back to one.

ThroughputReset.fsm


1642014939815.png (38.1 KiB)
throughputreset.fsm (31.7 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.