question

Mehdi K2 avatar image
0 Likes"
Mehdi K2 asked Jason Lightfoot answered

token freeze

Hi,

I have a simulation by process flow, 42 tokens create randomly. I want to stop a token until the time of simulation reach 5 am to 23pm. when the time to release reached (e.g. 5 am) token yet stop at a specific block and don't move to next!

my code is:

if (Model.dateTime.hour>5 && Model.dateTime.hour<23)

{

return 1;

}


if(Model.dateTime.hour<=5 || Model.dateTime.hour>=23)

{

return 2;

}


how I can solve this problem

thanks,

FlexSim 19.0.0
process flowflexsim 19.0.0timecommands
5 |100000

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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered

You want a delay not a decide.

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
0 Likes"
Joerg Vogel answered
5 |100000

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