question

Vaibhav R avatar image
0 Likes"
Vaibhav R asked Jeanette F commented

How do i change Processing time of a processor based on model run time?

Processing Time_run time.fsmHello!

In the model, I want to change the processing time of a processor based on model run time, Like if model run time changes from 1000 sec to 2000 sec the processor time should change from 5 sec to 10 sec. is it possible? Is there any other way to do it? Can anyone suggest an idea/options?

FlexSim 21.1.4
processorprocessing timesmodel time
· 2
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

Eric M avatar image
0 Likes"
Eric M answered

Hi @Vaibhav R, I'll attach a sample model where I use a Date Time Source in process flow to do this. I create a token at the time I want to change the processing time and I give the token a label called "ProcessTime." I can then use the code below to change the time based on the token label.

  1. YourProcessor.setProperty("ProcessTime",New Process Time);

Change Process Time.fsm


5 |100000

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