Cancel
Showing results for 
Search instead for 
Did you mean: 

Insert Init Method in Simulation

Hello everybody,

 

I realized that some of simulation examples of Bangsow sites are using "Init Methot" to insert a MU or transporter into the modeling.

 

I would like to know how is the procedure to do that, can we help me?

 

 

2 REPLIES

Re: Insert Init Method in Simulation

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello Gabriela,

 

you can use the method create to create an MU on any other material flow object. So for example use

.MUs.Entity,create(SingleProc, 1, 1);

to create a MU on a SingleProc.

 

Hope this will help you.

 

Reagrds

 

GG

Regards
GG

------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution

Re: Insert Init Method in Simulation

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Hello Gabriela,

 

the eventcontroller calls all methods with the name init before starting the experiment. So you can use methods with the name init to initialize your simulation. Sometimes it is hard to start with a complete empty model (perhaps you need special controls for this case). If this case never happens in reality, it is easier to fill the simulation with MUs before starting the experiments. I also use init methods to build up more complex logistics elements like robots, turning elements and so on, that consist of a track and transporters. If you define the transporters as a user defined attribute in the track, you can use a init (also as a user defined method-attribute) to initialize the object with all elements.

 

btw: to create an init method, just insert a method into your frame and rename it to init. Plant Simulation changes than the icon.

 

Best regards,

 

Steffen Bangsow

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net