question

Shinya O avatar image
0 Likes"
Shinya O asked Shinya O commented

Dynamically A-Connects from Dispatcher to taskExecuter

Hi,

TS cannot be created even if A-Connecs is made dynamically from Dispatcher to taskExecuter using contextdragconnection.

contextdragconnection(Model.find("Dispatcher1"), Model.find("Operator1"), "A");

I would like to dynamically switch the connection between taskExecuter and Dispatcher.

For instance, let's say you have AGVs and AGV elevators in a two-story warehouse. When modeling this warehouse, I would like to have a dispatcher on each floor and dynamically manage connections with AGVs.

Thanks in advance.

Dynamically A-Connects from Dispatcher to taskExecuter.fsm

1671512788066.png

FlexSim 22.0.9
dispatchercontextdragconnectioncreate task sequence
· 4
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 ·

May I suggest you search first here at this site, before you ask a new question? And perhaps you write about some of those answered question, what you tried to solve your problem. Here is an example what you can try: https://answers.flexsim.com/questions/24373/update-ports-after-a-new-contextdragconnection.html

2 Likes 2 ·
Shinya O avatar image Shinya O Joerg Vogel commented ·

Thank you for your information. The follwing FlexScript works well.

contextdragconnection(Model.find("Dispatcher1"), Model.find("Operator1"), "A");
openip(Model.find("Operator1"), 1);
0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Shinya O commented ·
@Shinya O , if your question got a successful solution, can I close your question? Joerg
0 Likes 0 ·
Show more comments

0 Answers