Good afternoon, I would like to know if it is posible to enter a entity in a SingleProc and to obtain a different entity in the exit in order to simulate the changes in the entity but without using an assembly station.
Maybe with Simtalk?
Thank you for your attention
Solved! Go to Solution.
freelance simulation specialist
You can use the exit-control rear to obtain the desired effect.
Your exit control could look something like this:
var name:=@.name @.delete; var obj:=.Mus.Container.create(self.~.succ) --self.~.succ is the first - in this case only - successor of the singleProc obj.name:=name
If you have multiple successors, you would have to determine where to create your new MU. But for a line this works fine, as you can see in the attached model.
there is a slight difference between your and my model:
your exit control "method" is located in the main frame, my exit is control attached to the singleProc as a custom attribute.
The problem here is the "self.~.succ" part which isn't evaluated correctly, since "self.~" is the location of the method and not the singleProc.
Try using "?.succ" as the location for your newly created MU.