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.