question

Luis Fernando avatar image
0 Likes"
Luis Fernando asked Jason Lightfoot edited

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

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

FlexSim 22.2.3
labeltravelparameters
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

Julio R avatar image
0 Likes"
Julio R answered Jason Lightfoot edited

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


· 1
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

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 0 ·