question

Liany TN avatar image
0 Likes"
Liany TN asked tannerp commented

Using Statistics Collector for getting times in one Zone

Hello!

In this model that I leave below, I am trying to get data through a Statistics Collector. I need the table to provide me with the times when each of the "Batch" tokens leave the Task Executer "Zone" object. So far, I have been able to get the times, but not the "Batch" token number to which each of those times belongs as shown in the following image.

19282-19259-19212-new-warehouse-project-1-autosave-12-4_autosave_6.fsm

If anyone could help me, I would be very grateful.

Best regards,

Liany!



@tanner.p @Jordan Johnson @Mischa Spelt @Clair A @Sam Stubbs

FlexSim 20.1.1
statistics collectorflexsim 20.1.1zoneonexit
· 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.

tannerp avatar image tannerp commented ·

@Liany TN,

Unfortunately, our Answers website is having issues with links and sometimes they are broken. Would you mind uploading the picture and the model again? You can do so in a comment here. Then I'm happy to take a look at your model.

You could also review this post in the meantime, as it is quite similar in terms of getting statistics for a zone.

1 Like 1 ·
Liany TN avatar image Liany TN commented ·

Hi!

Here below, I will leave the picture and model

19282-19259-19212-new-warehouse-project-1-autosave-12-4_autosave_6.fsm

0 Likes 0 ·

1 Answer

tannerp avatar image
0 Likes"
tannerp answered tannerp commented

@Liany TN,

I used the token id value as the Batch No value. Is this what you were hoping to obtain?

The method for doing so is creating a label that accesses the data label, "token" and gets the id for the token. The token's id is saved as the label "tokenNum", which can be accessed and assigned as the value for Batch No.

Let me know if this works or if you were looking for something else.

liany stats help.fsm


· 10
5 |100000

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

Liany TN avatar image Liany TN commented ·

@tanner.p

Hi!

That is not what I need, but I am trying to get the value of the tag "Batch" as I show you in the image that I leave below. For example, in the image, "Batch No" would be "5" and so on with each of the tokens.

If possible, it would be much better to also have a column next to it with the values of the label that I also point out in the image. For example, in the image, putting a column next to "Batch No" called "Operator" and the value of each cell would be "Operator 1" and so on with each of the tokens.

Thanks!!

0 Likes 0 ·
question.png (19.5 KiB)
tannerp avatar image tannerp Liany TN commented ·

Thanks for clarifying. I didn't find that "Batch" label anywhere when I looked initially. To access that, you can use the same logic, but instead of getting the token id, you will get the token's label, "Batch". It's the same process for the operator. The important thing to note is that the code shown below accesses the token instance itself, so all the data is available on it as though it was the token itself.

liany stats help 2.fsm

1 Like 1 ·
Liany TN avatar image Liany TN tannerp commented ·

@tanner.p

Tanner, thank you so much for all your help and your time.

I'm very grateful with you!!

1 Like 1 ·
Show more comments