question

Javier PL avatar image
0 Likes"
Javier PL asked Jordan Johnson edited

Max time for Custom Gantt Charts

Is it possible to stop a Custom Gantt Chart (for tracing stations states in my case) from updating as of certain point in time? Put differently, to set (for instance, via code by deactivating some functionality) a max time so that the Gantt stops updating the information and subsequently advancing in time. So far, I have read that is not possible to set a time window and I was wondering if there is another alternative though.

This way the visualization of the chart would be far better, because the Gantt just traces some stations that work at the beginning of the simulation and then stop yet the process goes on downstream.

FlexSim 19.0.0
statistics collectorgantt chartcustom gantt chartgantt
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 Jordan Johnson edited

If you look in Tools/Statistics, you can find your Gantt chart. There is a variable node called allowAxisChase. If you set that value to 0 instead of 1, the chart will only size the x-axis for the data, without considering the current model time. I think it does what you want it to do.

ganttdemo.fsm


ganttdemo.fsm (28.4 KiB)
· 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.

Javier PL avatar image Javier PL commented ·

Hi @jordan.johnson

Firstly, thanks for your response.

After downloading the example, as far as I've seen it does not work for me. I don't know if the version has something to do with it, but setting the value "allowAxisChases" to 0/1 seems to have no effect in my model.

Besides, in my case I have used a normal "Gantt Chart" whose subnodes in the tree have this appearance:

where you can see there's no variable with that name (at least visible).

In any case, what I want to do is exactly to freeze the gantt at some point in time, in case I did no explain myself clearly before (you said "the chart will only size the x-axis for the data" which I didn't get, but there will not be more data and, thus, no necessity to update de chart).

0 Likes 0 ·
yyyhl.png (10.5 KiB)
Jordan Johnson avatar image Jordan Johnson ♦♦ Javier PL commented ·

I'm sorry, I see that you are using 19.0. The fix I gave you only works in version 19.2 or above. That was my mistake. Unfortunately, I don't have a good workaround in version 19.0.

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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