you can use a generator and a method to record the JpH; you need to record the amount at the end of a period; then you calculate the jobs based on e.g. statNumOut and the old recorded value
see here for an example
Thanks for your solution. With this I am getting per hour throughtput at the end.roughput
What to do for achieving following two things
1. I want throurughput per machine per hour in single table file only.
2. With your solution, If i want shift level output I have to provide increment interval as 8 if shift is of 8 hours.
but iny case there are 2 shifts of 7 hour :45 min and night shift of 375 min.
how to get shift wise output in this case. last shift working hours are different.
Request you to provide some solution.
Many thanks in advance
1. you could insert the "old job count" as a user defined attribute in each machine; in the generator method you coud write the values of all machines into one row
2. we had this discussion several time here: between the shifts, the shift calendar becomes unplanned for a short time, so you can use an observer for unplanned (=false) to determine the shift change --> here you can calculate the jobs per shift
this you can also include in the observer method for unplanned in the shiftCalendar object; every time, if the ShiftCalendar gets unplanned=false, a new shift start, if unplanned=true a shift ends; here you can enter your code for record the statistical data (e.g. yourTable.writeRow(1,yourTable.yDim+1,m1.statWorkingPortion, m1.statWaintingPortion...)
you can use an observer method for unplanned in the shiftCalendar; you need to store the old value e.g.of statFailureTime at the start of the shift, then you can subtract this value from the value statFailureTime at the end of the shift and divide the result by the shift duration...