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.

Joerg Vogel avatar image Joerg Vogel commented ·
No, there is not a mechanism. The run stop is only an imageable stop. If you hit the run button again the model runs again. Other conditions lead to a halt, because there aren’t any events to do left.

You can create events like a delayed message or a user event that stops your model by command. On such occasions you can set different parameters to manipulate the process time. But as I said, it is only a virtual limit of an end of a simulation run. You can let the model run longer or shorter.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Vaibhav R, was Eric M's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

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.

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.