question

ShabDz avatar image
0 Likes"
ShabDz asked ShabDz commented

How to customize a graph to get expected volume in real time?

Hi, In the attached model Source1 generates batch of boxes (batch size=VOL) based on an schedule. I want to make a graph (line chart or histogram works well) to show how much of the total expected boxes have not left the Queues at each point of time.

Any help is appreciated.

Note: "box" table reflects the arrival schedule and will be updated later for different scenarios. so I need to calculate the total expected volume for the graph using the following code:

int sum = 0;
for(int i = 1; i <= gettablerows("box"); i++)
     sum += gettablenum("box", i, 4);
return sum;

test-dashboard.fsm

FlexSim 18.2.2
global tabledashboardsgraphs
capture.jpg (51.2 KiB)
test-dashboard.fsm (37.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

Raja Sekaran avatar image
1 Like"
Raja Sekaran answered ShabDz commented

@ShabDz

I have attached the model with changes. I have used process flow to count the number of expected boxes not released from the queue, then using a statistics collector tool to collect the data and then display it using the time plot dashboard.

Hope this helps.

Thanks.

support-dashboard.fsm


· 4
5 |100000

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

ShabDz avatar image ShabDz commented ·

Thanks @Raja Sekaran

0 Likes 0 ·
ShabDz avatar image ShabDz commented ·

Hi @Raja Sekaran, Can you please help me with customizing the time interval in the StatisticsCollector? I added a Table Chart to the model and I want it to report the expected volume with 5 min time-interval.

15572-support-dashboard.fsm

0 Likes 0 ·
Raja Sekaran avatar image Raja Sekaran ShabDz commented ·

@ShabDz

1. In the attached the model, I have added the tracked variable "Expected boxes" and set the value of a total number of boxes expected to release from the queue.

2. Then, Update the tracked variable value in the Queue OnExit event.

3. In the Statistics collector tool, listen to the Added timer event and define the required time interval.

4. Then define the column's value as tracked variable value.

I hope this helps.

Thanks.

support-dashboard-1.fsm

1 Like 1 ·
screenshot.png (23.5 KiB)
screenshot-1.png (9.1 KiB)
screenshot-2.png (22.0 KiB)
screenshot-3.png (25.1 KiB)
ShabDz avatar image ShabDz Raja Sekaran commented ·

Thank you so much @Raja Sekaran

0 Likes 0 ·