question

Pinakin K avatar image
0 Likes"
Pinakin K asked Pinakin K commented

How to set Processing time with code?

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?

FlexSim 19.1.1
processing time change
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
zacharyh avatar image
1 Like"
zacharyh answered Pinakin K commented

@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.


· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Pinakin K avatar image Pinakin K commented ·

Thank You! it works.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.