Cycletime by condition

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
GroepT
Posts: 4
Joined: Monday 25 April, 2016 - 16:47

Cycletime by condition

Post by GroepT »

Hi,

I am building a simulation model where I want an atom to stay in a server until another atom with a specific label (Label name "Type" with value 21) has reached a special queue, then I want the atom to leave the server.

Any ideas how I can model this?

Kind regards,
User avatar
HarryBunnik
Posts: 362
Joined: Monday 07 February, 2011 - 11:22

Re: Cycletime by condition

Post by HarryBunnik »

Hallo,

You can manipulate this using CloseOutput(refAtom), OpenOutput(refAtom). So if you close the output of the server the moment something comes in (OnEntry) and opens it when the queue is reached by the desired atom.

I hope this helps you further,

Cheers,

Harry
Post Reply