Showing results for 
Search instead for 
Did you mean: 

source create mu

Valued Contributor
Valued Contributor

in my model,I want to create mu per some rule, namely everytimes create ten mus, and   I need create five times(manely fifty mus  in all), and the  interval between every times per "uniform",how can i do it


Betreff: source create mu

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello fox,


assume you want to create the MUs on a object which I call station.

Create a methode with the following code:

var part: object := .MUS.Part.create(Station)

partsCreated += 1     // a global variable counting the number of parts created

// determine the waiting time as auniform distribution between 60and 120 seconds, using random stream 9

var waitingTime : time := z_uniform(9, 60, 120)

self.methcall(waitingTime)     // call the method again after the waiting time has gone



Hope this helps


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