hi,
I need the delay command in custom code. how can I apply the delay action exactly equal to delay block in process flow but in custom command?
(please if available, give me a piece of code!)
thanks in advance.
hi,
I need the delay command in custom code. how can I apply the delay action exactly equal to delay block in process flow but in custom command?
(please if available, give me a piece of code!)
thanks in advance.
This is not a command feature. You can do a similar construct with a delayed message and the On Message trigger. Or if you know FlexSim quite well you can create an event which execute your trigger once more and delay this event in event list. But a suspending command is not available in FlexSim.
The command delayednodefunction might be more useful than createevent.
Often the keyword 'c' will refer to the code itself (careful though, it's not always) so in that case you can call the same code after a delay with different parameters to indicate it's the second call with a simple expression. So if I was already passing in parameter 1 and 2 but wanted to test for the second call using paramter 3 the systax to set up that call after a 10 second delay would be this:
delayednodefunction(c,10,param(1),param(2),1);
16 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved