question

Elena Haviland avatar image
0 Likes"
Elena Haviland asked Elena Haviland commented

How to count number of specific flow items into a sink?

A sink in my model accepts two different type of flow items. I'd like to keep count of how many of each type arrive at that sink and ideally have those numbers posted in my dashboard. m-line-transport-concept-d.fsm

Choose One
sinkcounting
5 |100000

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

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Elena Haviland commented

You can create two number labels in your sink. Then you increment each label if a condition becomes true that one type has entered the sink. You can show any label of an object in a dashboard. I think it is dynamic text which will do this. With the eye dropper tool you can choose the label directly from the sink in your 3D model, if you adjust the parameters and functions of the dashboard object.

Jörg

· 3
5 |100000

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

Matt Long avatar image
2 Likes"
Matt Long answered Elena Haviland commented

If you didn't want to have to worry about coding stuff up or adding labels, you could change the Sink object to be a Queue. Then set the Queue's Send To Port option to separate out the two different types of items and send one type to a Sink and send the other type to a different Sink. Then you could just chart the input of each of the Sinks to get the totals.

· 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.