question

Zac Lui avatar image
0 Likes"
Zac Lui asked Zac Lui commented

Problem in using label

Hi all, I tried to use label, however it cannot perform what I expected.

Source using round robin method to send people out to queue 1 to queue 4.

1 st person will follow this path:

queue 1 -> processor 1 -> queue 2 -> processor 2 > queue 3 -> processor 3 then leave

2nd person will follow this path:

queue 2 -> processor 2, then leave

3rd person will follow this path:

queue 3-> processor 3, then leave

4th person will follow this path:

queue 4 -> processor 4 -> queue 2 -> processor 2 -> queue 1 -> processor 1 , then leave

I am not sure how to using label to clearly distinguish the source, the perform the path mention above. Many thanks for your help.

Choose One
FlexSim 20.1.0
labelsflexsim 20.1.0
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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Zac Lui commented

I hope my example demonstrates you the use of label attributes to set a flow.

Involved are the On Creation trigger and the Send To Port function.

Send_to_by_label_Type_vs_round_robin.fsm


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

Joerg Vogel avatar image Joerg Vogel commented ·

Perhaps you look into the Send To Port function option Port by Case.

0 Likes 0 ·
Zac Lui avatar image Zac Lui commented ·

@Jörg Vogel

Thank you for your reply, if there is one source only how to handle it, in this case processor have 3 functions:

Send 1 st person to queue 3, 2 nd person to sink, and 4th person to queue 1, to handle this case use On Creation trigger and the Send To Port function, no need to use label ? thank you again



test 123.fsm

0 Likes 0 ·
test-123.fsm (29.3 KiB)
Joerg Vogel avatar image Joerg Vogel Zac Lui commented ·

You set a Label in On Exit trigger of the source. The value is port. "port" is variable defied in the source code of On Exit and it is parsed into this function by Send To Port function. Now that your Operators as Flowitems have an label you can send them with the option Port By Case to their destination.

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.