question

Marcello Rosadini avatar image
0 Likes"
Marcello Rosadini asked Matt Long commented

Item trace Gantt only for some stations?

Hi,

I'm trying to trace the time spent by items on certain stations with a Gantt chart. On the attached model, objects have a label called "gantt" and I would like to trace ony the ones with a label value of 1.

I have set the option in the trace requirements, and it does skip the first object (with a vaue of 0) however, after starting the trace, it doesn't take this into account anymore.

Is this the correct way to implement this? Or someone could suggest a workaround?

I have tried a custom Gantt with the Table presets, however, the actual process would involve around 10 stations and I'm not sure how to make it that after creating an item it should add another entry to the Gantt and write and read another set of rows

Thanks!

support.fsm

FlexSim 17.1.3
gantt charttrace
support.fsm (21.5 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

Matt Long avatar image
1 Like"
Matt Long answered Matt Long commented

The Item Trace Gantt Chart was designed with this functionality in mind. Once you start tracing a flowitem it continues the trace until the flowitem is destroyed.

We can manually create the data and display it in a Custom Gantt Chart. I've attached a sample model showing how to do this. You'll have to manually add entries for each item to the table Item Trace that the Custom Gantt Chart will read. I also created a second table, Traced Items, which gives you a single entry for each item you are tracing. The table caches off the rows in the Item Trace table that are associated with that item. The chart can then loop through the Traced Items table and pull the correct data from the Item Trace table.

To expand this to the 10 objects you referred to, just copy the code from Processor2 to additional objects. You won't need to change the code, it will work for as many objects as you need.

Processor1 does have slightly different code because it has to add the initial entry for the item into the Traced Items table. Whereas Processor2 only updates the row from the Traced Items table.

customitemtrace.fsm


customitemtrace.fsm (22.2 KiB)
· 8
5 |100000

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

Marcello Rosadini avatar image Marcello Rosadini commented ·

Thank you @Matt Long for the detailed and flexible answer, it was a bit more tricky than I expected!

0 Likes 0 ·
Marcello Rosadini avatar image Marcello Rosadini commented ·

Hi @Matt Long a few weeks ago you helped me creating this custom Gantt for one of our customers. However we are facing an issue. The Gantt keeps growing every time an item enters the process and it starts to get very big, making it very difficult trace each item. They are requesting us if it would be possible to group or sort the items in the charts.captura.png

The names of the zones are marked as ATSI1, ATSI2 etc. The idea would be that when a new item enters the chart it gets positioned after the last one of its group. In this screenshot, item 3 should had been placed before Item 2 and so on. It may not seem relevant here but sometimes a new item enters the chart way later in the simulation and it is hard to correlate it with it's group. ¿Maybe with the stats collector could be done? @jordan.johnson

0 Likes 0 ·
captura.png (44.9 KiB)
Jordan Johnson avatar image Jordan Johnson ♦♦ Marcello Rosadini commented ·

@marcello.rosadini It will be easier/better if you post this as a new question; you can always link back to this question in the new one. In brief, yes, the stats collector and calculated table can do this. I'll watch for your new question, and post my answer there.

0 Likes 0 ·
Jordan Johnson avatar image Jordan Johnson ♦♦ Marcello Rosadini commented ·

Also, how are zones defined? Are they process flow zones? Is each zone a visual tool, with related objects defined? Let me know in your new question.

0 Likes 0 ·
Kevin Megee avatar image Kevin Megee commented ·

@Matt Long how would I track the item time from processor 1, all the way to the sink, or a finishing queue? I would like to see how long an item takes to go through my model from a certain point, to the finishing queue.

0 Likes 0 ·
Matt Long avatar image Matt Long Kevin Megee commented ·

This is why the Item Trace Gantt Chart is nice because it will automatically trace the item all the way through the model. To do this manually it might be easiest to use Process Flow. You could use a Wait for Event activity to add a listener to the flow item's On Entering and On Exiting. Each time the event fires, update whatever data you need and then send the token back to the Wait for Event to listen for it to enter the next object.

0 Likes 0 ·
Kevin Megee avatar image Kevin Megee Matt Long commented ·

Thanks for the quick response. I guess I'm confused by your answer. I used the trigger codes from the above sample you created. Is there a trigger "on entry" code that could track the End Time of a flow item from the Item Trace table?7632-customitemtrace.fsm

0 Likes 0 ·
Show more comments