How to set the travel destination depending by the Processor label?

luis_fernando_vr
Not applicable
0 Views
2 Replies
Message 1 of 3

How to set the travel destination depending by the Processor label?

luis_fernando_vr
Not applicable

[ FlexSim 22.2.3 ]

Hi FlexSim team,

How can I set the Operator travel destination depending by a Parameter.
For example this model that I upload, I want that if the Parameter is 3, then travel to the Processor that has the label "Processor" with a value of "3"


1670279658741.png

1. Travel to a Processor depending by Parameter.fsm


Thank you

0 Likes
Accepted solutions (1)
1 View
2 Replies
Replies (2)
Message 2 of 3

julio_r
Not applicable
Accepted solution

Hello Luis Fernando,

First, If you are using an unload command you do not need a travel command (unless you use something like networknodes.

Now, to select several posible destinations you can use the option Object by case and then you have to set up the case funcion as the parameter and then three cases by pressing the green cross and then with the sampler, for each case you select the processor with the sampler.

1670284053549.png1670284111907.png

Here is the modified model.

1-travel-to-a-processor-depending-by-parameter (1)_1.fsm

0 Likes
Message 3 of 3

jason_lightfootVL7B4
Autodesk
Autodesk

You could also add the processors to a group and set a 'destination' label on the token using this expression:

Group("Processors")[Model.parameters["Processor to use"].evaluate()]

Try to use pointers in your model wherever you can so that you don't have to go back and find all the object references by string if/when you edit the names.

0 Likes

Type a product name