question

Samantha Y avatar image
0 Likes"
Samantha Y asked Mischa Spelt answered

How do I count the number of item from source?

I am simulating visitors arriving a park, and I would like to see how the park will look like when n people were arrived the park. How can I get the number of visitors come out from the source?

Like the following picture:

The above picture, "Customer_239" is the 239th customers coming from the source, how can I get this number? Thanks.

P.S. I am using flexsim 2017.0.5

FlexSim 17.0.12
sourceflowitemscounting
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

·
Mischa Spelt avatar image
1 Like"
Mischa Spelt answered

You can use the On Creation or On Exit trigger of the source to create a label when the people are created, based on the total output so far.

In these fields, item refers to the created or exiting flow item, and current refers to the source itself. I hope it's fairly obvious what current.stats.output.count then does, the only thing to keep in mind is that the flow item has not yet exited the source at the point the label is assigned, so for the first flow item the output count will still be 0 - hence the + 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.

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.