question

Sonia A avatar image
0 Likes"
Sonia A asked Sonia A answered

How do I assign incremental labels in Process flow?

Hi Everybody, I am learning how to build a model in Flexsim and I have a doubt about incremental labels in the Process flow. I would like the incoming items to have a label that indicates the number of those items. The first item that enters into the process should have label 1, the second item should have label 2 etc. I have tried to assign an incremental label called NItem to the flowing tokens but I am missing something because it is not working. I have attached the simple model that I did.

Can someone help me with that? Thank you so much!

increasing_lable.fsm

FlexSim 16.2.2
FlexSim 21.0.0
FlexSim 21.0.0
processflowlabelsflexsim 21.0.0increment labelitem creation
· 2
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 ·

There is a mismatch with your namespace. Process flow is a 2D graphic enhanced logic layer. Tokens are 2D shapes to represent cycle steps of processes.

Your model is a 3D model with 3d flow items looking like boxes. And your model of FlexSim Version 16.2 works as you describe it without any problems in Version 17.0 and 21.0.

I don't know what your problem is. Do you want to do the same label assignment with a process flow logic in FlexSim Version 21.0.0?

The model is a copy from an older answer:

https://answers.flexsim.com/questions/30326/how-do-i-create-a-label-that-increases-its-value-b.html

0 Likes 0 ·
Sonia A avatar image Sonia A Joerg Vogel commented ·

I am very sorry but I uploaded a different model that I had gotten from another question (with the hope to solve the same problem of the incremental label). Anyway, I have uploaded the right file now. The problem is that by adding an incremental label I would expect each token to have its own numbered label as explained in my question. So the first token that enters the model should have label NItem equal to 1, the second token should have the label NItem equal to 2 and so on. With what I have built, however, the label is always equal to 1 and I don't know what I am missing. Thank you so much for your support!

0 Likes 0 ·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

I know my suggestion doesn’t meet your expectations completely, but maybe you can work with the token ID property. The first token gets the ID 1, the second the ID 2 and so on. But there are sub processes in statistic collectors, which create tokens, too. And those will interfere with your own process and will at some point set a higher ID number then actually entered number of tokens created in your process only.

5 |100000

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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered

You can define a counter label on the processFlow itself and increment that before assigning the label value to your tokens. There are many other solutions I'm sure using variables, instance objects, stats of the activities - too many to list.

5 |100000

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

Sonia A avatar image
0 Likes"
Sonia A answered

Thank you so much for your help!

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.