question

Talia Z avatar image
0 Likes"
Talia Z asked Talia Z commented

Date Time Source to increment labels

Hello! I have tried a few different methods for incrementing a label based on the quantity that enters the system. My aim is to label each token with 'orderNumber' that equals the number of tokens that are present; meaning, the label on the first token that enters the system is 1 and the label on the fourth token that enters the system is 4. Using rowNumber labels the first 100 tokens with 1, and the second 100 with 2, as shown in the schedule. I know I can use a Create Tokens activity and then label based on creationIndex, but I want the system to rely on this date time source. I am grateful for any suggestions or advice you may share. Thank you in advance for your help!

flexsim_question_datetimesource.fsm

FlexSim 20.0.9
flexsim 20.0.9increment labeldatetimesource
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

·
Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered Talia Z commented

@Talia Z A simple solution is to put an assign labels activity right behind the source and select the option "Get Activity Stat" then sample or select the assign labels activity and as a statistic select input. That way you get automatically 1...n for all tokens coming out of the source.


Other but more complicated option would be to use a global variable or a processflow variable.

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

Talia Z avatar image Talia Z commented ·
Thank you very much @steven.hamoen! Your first suggestion meets my needs.
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.