I am busy with an automotive BIW line and the most important value is Thoughput per hour (TPH). This is easily collected using Drain.statthroughputperhor but this can only be called on a drain object. I was wondering what would be the most effecient way of getting the same information out of a SingleProc?
Using a method to count to throughput and a generator to trigger every hour can show the current TPH but does not keep historical record. The values can be recorded into a table and then the average can be calculated but that seems like too much work for this basic stat.
I have attached a small model where I am curently playing around with scenarios.
Solved! Go to Solution.
Not an elegant solution, but usable when there's only one object you want to follow.
Use an exit rear control on the SingleProc, with this code:
-- Drain here is an extra drain in your model.
@.create(Drain, 0, true);
The third parameter, set to true, will allow you to copy the statistics of the mu you create the copy from.
This will allow you to monitor the throughput with the statistics from a Drain. Very simple solution.
Hi, thank for the reply.
I actually have to keep track of mutliple objects and drains so this particular solution might not work, but thanks for the feedback