question

Juliette C avatar image
0 Likes"
Juliette C asked Joerg Vogel edited

How it's possible to count an item.type inside the system?

FlexSim 19.0.3
itemtype
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
0 Likes"
Joerg Vogel answered Joerg Vogel edited

You increment a label at the object.

One item type:

current.countItem += 1

more item types

current.countItemType[item.Type] +=1

The Array must be initialized by the number of types

count-item-by-type-at-object.fsm

The Queue counts the types and items


5 |100000

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

Allister Wilson avatar image
0 Likes"
Allister Wilson answered Juliette C commented

You can use one of the WIP By Type chart templates, see attached example.


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

Juliette C avatar image Juliette C commented ·

Thanks

But I would like to use the count in a logic output of a rack. Can I use the WIP inside a code ?

0 Likes 0 ·

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.