question

poopatel avatar image
0 Likes"
poopatel asked Jeanette F commented

Label from source to use for port by case

Pallet_WIP_req_model.fsm1712012861001.png

Hii I am creating parts using process flow at Incoming_Modules. I am assigning a label to it 100 and non_100s. I want to split parts from split buffer using port by case but its giving me error saying Type label doesn't exists. Can someone please tell me the issue of why I am unable to split via port by case ?

FlexSim 23.0.0
label valueport by caseprocess flow issue
· 5
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 ·
You add one single label. Different values are responsible to switch by case.
0 Likes 0 ·
poopatel avatar image poopatel Joerg Vogel commented ·

1712092381189.png 1712092400672.png

1712092446640.png


I have a label name Type which can be 1 or 2. I have also given a set label in combiner1 but for some reason Split_Buffer is not able to send item as per label to different ports.

Pallet_WIP_req_model.fsm

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel poopatel commented ·
@poopatel, Queue1 contains only one color type of pallet. It seems Split_Buffer does exactly what you describe.
0 Likes 0 ·
Show more comments
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @poopatel, was Felix Möhlmann'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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

The "Type" label values are strings. You can see this both in the source where you assign them and by the fact that the value is aligned to the left in the label field.

1712124416769.png1712124432749.png

The Port By Case option compares the value to numbers, which the label values are not equal to and thus only the "default" port 1 is used.

Either change the label values to be numeric or adjust the Port By Case so it uses string values as well.


1712124416769.png (6.5 KiB)
1712124432749.png (1.2 KiB)
5 |100000

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