question

Bernabe Neri avatar image
0 Likes"
Bernabe Neri asked Emily Hardy edited

Label data tracking

explanetion.pdfstatistics-collector.fsm

Hi, I've tried to solve this issue but i can´t complete it.

I'm trying to collect data from a model using labels. The label will be created in a queue downstream to the point where data will be collected, in the last sink of that item.

I'll share the programming and the example model I have.

Thanks,

explanetion.pdfstatistics-collector.fsm

Choose One
labelsdata
explanetion.pdf (292.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.

1 Answer

Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered

I looked at this model, and I noticed two things. First, in the OnExit trigger of the Processor, there is a popup that is setting the value of the Product label. However, the code in that popup is setting the value to itself. You will need to set the value to something like

duniform(1, 3)

The other thing I noticed is that you have a time plot, but the Statistics Collector for that chart is only collecting a single column. You will need to add a second column of data to use that kind of chart.

As a final note, you may be interested in upgrading to version 2018, or version 2018 Update 1.Those versions have Chart Templates, that make it much easier to create the kind of charts you are looking for.

5 |100000

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