Announcements

Announcement: We’re aware of an issue affecting starting a new topic from category pages and creating new blog posts. New topics can still be started directly from the relevant board. Learn more here.

Track label value of a group of labels using statistics collector

Track label value of a group of labels using statistics collector

nicholas_m4
Not applicable
617 Views
3 Replies
Message 1 of 4

Track label value of a group of labels using statistics collector

nicholas_m4
Not applicable

[ FlexSim 21.1.5 ]

Hello!

I have what I believe to be a complex question. I'm currently working on a model of a production cell for my company. The basic way it is set up is that tokens are created via a statistical distribution in Process Flow, these tokens are then assigned labels based on the "Product Line" via a percentage distribution (IE, 80% of the parts are assigned Product Line A, etc). From there, the tokens are assigned labels for their individual part numbers as well as length. The tokens are then connected to a 3D model where their routes are determined via a global table.

1642774076096.png

My issue comes in trying to track the amount of "Meters Produced' per Product Line. I have been able to create a collector that tracks total Meters Produced per Processor per Day, however that was done by adding an incremental label to each processor called "MetersProcessed", grouping the processor objects together, and creating a label for this new singular entity; which I know I cannot do for labels by themselves.

Label Used (X)---> Group("Processors").toFlatArray()[tokenIndex]

How I tracked Meters (Output)---> token.X.as(Object).labels["MetersProcessed"].value


I am wondering if there is some way to bypass the need for an object and somehow get to a state where I can track something similar to this:

DayProduct LineMeters Processed
3A1500
3B300
3C800


I am open to any suggestions!

0 Likes
Accepted solutions (1)
618 Views
3 Replies
Replies (3)
Message 2 of 4

jason_lightfoot_adsk
Autodesk
Autodesk
Accepted solution

You don't need a label, you can use the statistics collector to increment the row directly. You can make the row identifier day+line.

Message 3 of 4

Jeanette_Fullmer
Community Manager
Community Manager

Hi @Nicholas M, was Jason Lightfoot'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 unaccept and comment back to reopen your question.

Message 4 of 4

nicholas_m4
Not applicable
Sorry for the late response... I didn't realize I could directly assign the line to the statistics collector. Thank you!
0 Likes