question

Ashmita G avatar image
0 Likes"
Ashmita G asked Ben Wilson commented

Delay in Custom Code

Hi,

I want to write a custom code in which I can include a delay for a stipulated period of time, post which the code will resume executing the remainder of the commands. Could you suggest the syntax for the command, such that I achieve the requisite.

Thank you.

FlexSim 20.2.1
flexscriptcustom codeflexsim 20.2.1delay
· 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
3 Likes"
Joerg Vogel answered Ashmita G commented

you can call stop and resume to achieve a similar behavior.

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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot edited

Assuming you mean a delay in simulated and not real time you can do this simply in a process flow:


1611848874441.png (4.7 KiB)
· 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.