hi, I want cycletime was different by influenced inputport in Processor1, something like, if from Queue1 then cycletime is ten, if from Queue2 then cycletime is five. I dont know how to do that. please help to me. thanks guys.
hi, I want cycletime was different by influenced inputport in Processor1, something like, if from Queue1 then cycletime is ten, if from Queue2 then cycletime is five. I dont know how to do that. please help to me. thanks guys.
Hi!
Instead of trying to read the port which the item came from, a simple solution is setting a label with the processing time in the item at each queue (using a trigger in each queue), then, you can read that label in the processor and use it as the processing time.
You could also set a label in the entering items at the processor with the trigger "On Entry":
Then, you can set "Values By Case" in Process Time field:
I hope it helps you.
Edit: Iago beat me by two minutes. I'll leave the screenshots here for visual reference.
Setting the label on the item.
Then use that label in the "Values By Case" option of the process time.
I want code in Processor Time, something like:
get a API like: int port = a function can get inputportnum;
if (port == some condition){ return 10s;}
else{ return 5s;}
then we can direct write code in Processor and will be flexible, if I want some condition ports are 10s, others are 5s. could you know how to do that? thanks professor.
I want code in Processor Time, something like:
get a API like: int port = a function can get inputportnum;
if (port == some condition){ return 10s;}
else{ return 5s;}
then we can direct write code in Processor and will be flexible, if I want some condition ports are 10s, others are 5s. could you know how to do that? thanks professor.
so they cant judgement when code in Processor time and have not related function to get a portnum. if the model process was complex used the labels way will be more than complex, so I want find another ways to solve this problem.
I got a solution, we can code in setuptime, because of it have relvent API about port, so we just use way: Object.find("PATH about cycletime").value, then will be flexible in some conditions. some code under the graph. please reference and modified if get wrong.
One note though: If the processor can work on multiple items at once there might be a case where the cycle time is set wrong if two (or more) items enter at the same time because the second item overwrites the cycletime again before the process for the first is started. I say 'might' because I'm not actually sure in what exact order the codes are evaluated.
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