question

yoni A avatar image
0 Likes"
yoni A asked yoni A commented

throughput per hour table statistics

how to use the throughput per hour table statistics on a station placed on a conveyor? the statistics works fine on a processor

FlexSim 18.1.0
throughput
5 |100000

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

asb.p avatar image
1 Like"
asb.p answered yoni A commented

Hello Yoni,

It is same as you have done for Processer. Drag Output/hour chart in the dashboard and add station in the objects tab.

· 5
5 |100000

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

yoni A avatar image yoni A commented ·

throughput-per-hour-statistics.fs

@asb.praneeth see attached model, and see differences

0 Likes 0 ·
yoni A avatar image yoni A commented ·
@asb.praneeth

see attached model and see differences

0 Likes 0 ·
Raja Sekaran avatar image Raja Sekaran yoni A commented ·

@yoni A

Try using the legacy chart (Output Per Hour)

Here is the model yoni-support.fsm

Edited: In the updated model, I have customized the process flow to capture the station throughput per hour.

yoni-support-updated.fsm

1 Like 1 ·
yoni A avatar image yoni A commented ·

@asb.praneeth

thanks for your answer, ca you show me how you found the output per hour, I did not see it on the statistics charts bar

regards

yoni

0 Likes 0 ·
Raja Sekaran avatar image Raja Sekaran yoni A commented ·

@yoni A

File >> Global Preferences >> Environment >> Select the Legacy charts checkbox

Then you can find the legacy charts in the Dashboard library.

Thanks

0 Likes 0 ·
capture1.png (44.6 KiB)
Jordan Johnson avatar image
1 Like"
Jordan Johnson answered

The Throughput Per Hour template currently does not support conveyor stations as objects. The easiest way to get that template to display the data you want is as follows.

I made this demo model that shows how to get the chart you want:

throughputperhour.fsm

To get this chart, you need to make a Statistics Collector. The collector does not listen to any events. On the Data Recording tab, set the row mode to Enumerate. Sample the stations you want to show on the chart.

Then you need to add three columns. For the first column, set the Update Mode to When Row is Added. For the value, use the picklist to choose IDs, then choose ID of Row Value.

For the second column, set the Update Mode to Always. For the value, use the picklist to choose Statistics, then choose Statistics By Object. In the popup, set the object to data.rowValue, and choose the current Output.

For the third column, set the Update Mode to Always. For the value, use the following code:

/**Custom Code*/
StatisticsCollector collector = ownerobject(c);
var data = collector.collectedData;
treenode current = data.eventNode;
Object instance = data.processFlowInstance;

// determine the number of hours
double duration = Model.statisticalTime / 3600;

// If no time has elapsed, return zero to avoid divide by zero
if (duration == 0)
	return 0;

// Look up the throughput value in the current table	
double throughput = Table(collector)[data.rowNum][2];
return throughput / duration;

This code just gets the value from the second column, and divides it by the total number of hours.


5 |100000

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