It is ok to use time()-getentrytime(current.first) to get used process time.
But if the model with breakdowns, it does not work fine.
How can I get used time during processing?
Command like: getProcessTime(current.first).qa.fsm
It is ok to use time()-getentrytime(current.first) to get used process time.
But if the model with breakdowns, it does not work fine.
How can I get used time during processing?
Command like: getProcessTime(current.first).qa.fsm
Hi @XinLiang S,
I'm not sure what you're trying to do, but I have a couple of concerns/questions.
1) What are you referring to by "used process time"? Is that the time the item takes to process? Or is it something different?
2) This may not be the right kind of trigger for this. It doesn't seem like you are drawing anything, but you're using an On Draw trigger.
3) You should use "Model.time" and not "time()" on line 8 of your code.
Hopefully you can explain a bit more of what you're looking for so we can help you.
Thanks for your comment.
1) Used process time: How much process time has been used for current flow item.
2) I need to trigger On Message event to duplicate an item to output during process based on some calculation. Not sure if any other reasonable way to trigger it.
The purpose is to simulation a cutting process, which is to input 1 coil and output many bundle of items (with delay(cycle time) between output). So, Separator is not applicable.
There is an saw mill simulation example using multi-processor. But in my project, the number of bundles vary according to parameters(Bundles Output = ProcessTime / CycleTime).
So, I make the demo to simulate. It do output 1 bundle after delay(cycle time)(##here I need to know how much process time has been used for current flow item##), till (ProcessTime/CycleTime) bundles finish output.
Hi Tanner Poulton,
I have used MultiProcessor for the simulation of cutting.
But another problem is that 2 items are loaded after first flow item finished, other than one. Seems that the closeinput(current) does not work fine as expected.
As long as you use the Function Process Time inside the properties of the processor class, you have to set the process time as a return value in this funktion. You can compute this return value, store the value at the item as a label value, and finally return this value in this function. The FlexSim engine will use this return value to hold the item at the processor in the state processing. It is up to you to evaluate the item labels values to get what you want. Perhaps you can transfer the item label value OnExit to a tracked variable and use it in your statistics.
Thanks for your reply.
I try to use MultiProcessor for the cutting simulation.
8 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved