Reset throughput of a processor to zero during the run

Reset throughput of a processor to zero during the run

min_z6
Not applicable
12 Views
2 Replies
Message 1 of 3

Reset throughput of a processor to zero during the run

min_z6
Not applicable

[ FlexSim 20.2.3 ]

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?

0 Likes
Accepted solutions (1)
13 Views
2 Replies
Replies (2)
Message 2 of 3

JordanLJohnson
Autodesk
Autodesk
Accepted solution

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

.


Jordan Johnson
Principal Software Engineer
>

0 Likes
Message 3 of 3

Jeanette_Fullmer
Community Manager
Community Manager

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