question

sang avatar image
0 Likes"
sang asked Joerg Vogel commented

How to change the speed of more than two operators with load and without load

3_autosave.fsmIn this model there are two operators carrying the flowitems from queue 1 to queue 2. I used a custom code to walk the operator 1 with different speed with load and without the load respectively. Here, I used two token trees in the process flow for the situation of load and unload of operator 1. but I want to vary the speed of operator 1, 2 altogether respectively but I don’t want to create another two token trees. The reason why I am doing this is I am planing to use hundreds of operator and I want to vary their speed altogether. I don’t want to create a custom code for every single operator. is there any way I can indicate more than two operators like using label, in the line “getvarnode(Model.find("Operator"), "maxspeed").value=2;”.


If there are any other solutions for my situation please help.

FlexSim 19.0.0
flexsim 19.0.0operator speed
image01.png (205.8 KiB)
image02.png (4.9 KiB)
3-autosave.fsm (69.7 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Joerg Vogel commented

3-autosave_jl.fsmUse an instanced/object-based process flow and attach the operators. Then you refer to each operator as current.


3-autosave-jl.fsm (67.9 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·

Nice approach, it replaces a user command to iterate through a group to change values.

1 Like 1 ·
sang avatar image sang commented ·

Thank you! it works great

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.