How to set Processing time with code?

How to set Processing time with code?

pinakin_k
Not applicable
197 Views
2 Replies
Message 1 of 3

How to set Processing time with code?

pinakin_k
Not applicable

[ FlexSim 19.1.1 ]

I have 200 processors, and would like to change the processing time of each one. Is there a way to change the processing time of each processor using 'Custom Code' in process flow?

0 Likes
Accepted solutions (1)
198 Views
2 Replies
Replies (2)
Message 2 of 3

zac_h_adsk
Autodesk
Autodesk
Accepted solution

@Pinakin K

You can change the Processing Time with code by using the Tree. If you right click on the processor you will see an option to see the Tree for that processor. The Specific node that controls the processor time will be found under variables as the "cycletime". By using the code "Model.find("Processor1>variables/cycletime").value = 20;" you can can change the Process Time in your custom code.

In my example below I used process flow to wait for an event such as process finish to then change the processing time. So it would depend on how/when you wanted to change the process time for where/when you implemented the custom code.

21050-processing-time-custom-code-tree.png

Message 3 of 3

pinakin_k
Not applicable

Thank You! it works.

0 Likes