question

Oscar C13 avatar image
0 Likes"
Oscar C13 asked Connor A commented

Choosing ports with experimenter and process flow

Hi,

I have a problem. I want to be able to evaluate with the experimenter where I get a lower value of "Total" from the table "GlobalTable1", if with option1 (goes to processor 1) or with option 2(goes to processor2).

The problem is that I don´t know how to put the path option in the parameter.

Without the process flow, and putting a source, I got it, but in my real model I don´t have any sources and everytthing is with process flow.

Thanks

Alternativa.fsm

FlexSim 21.2.2
process flowexperimenterparameters
alternativa.fsm (184.4 KiB)
· 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.

Connor A avatar image Connor A commented ·

Hi @Oscar C13, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered

You can use the syntax "Model.parameters.paramName" to access a parameter from a parameter table at any point in the model. So you can use this as the expression that decides which connector the token is send to.

1639570843934.png

1639570855993.png

If "Path" is 1 the token is send to first connector, if it is 2 to the second.


1639570843934.png (8.6 KiB)
1639570855993.png (2.9 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.

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.