question

Mischa Spelt avatar image
0 Likes"
Mischa Spelt asked Liz H3 commented

Properly disconnect TE from AGV network

How do I properly disconnect a Task Executer from the AGV network using code?

For connecting there is the eventfunction addMember on the navigator, but there is no equivalent for disconnecting it.

I tried just removing the coupling node to the navigator, but that may causes issues (for example, if the TE was partially blocking some path connections and another TE had already come to an accumulation stop behind it, the latter will sometimes never move again).

FlexSim 19.2.3
flexscriptagv networkagv accumulation
5 |100000

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

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered

Disconnecting a TE from a network is not a feature of FlexSim. You're welcome to try it and see what you can get away with, but any irregularities you find (like your AGV issue) will be defined as unsupported behavior.

We've provided features to add members to navigators since we wanted to support auto building models, but we don't currently support changing networks or removing travelers from a network.

5 |100000

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

Roi Sánchez avatar image
1 Like"
Roi Sánchez answered Liz H3 commented

Hi @Mischa Spelt, what I usually do is to connect the TE to another network. For example, I have faced several times with the need to connect and disconnect it from an AStar network and the agv network. What I did is just to connect to the other one like this:

to AStar: contextdragconnection(agv,model().find("AStarNavigator"),"A");

to AGV network: function_s(cp,"addConnection",-1,agv);

· 3
5 |100000

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

Liz H3 avatar image Liz H3 commented ·
This little tidbit got me over a really big hump, thank you!
1 Like 1 ·
Mischa Spelt avatar image Mischa Spelt commented ·

Thank you Roi. But if my 'other network' is the default navigator (i.e. none), how would I do that?

0 Likes 0 ·
Mischa Spelt avatar image Mischa Spelt commented ·

Also, it seems that no matter how I disconnect (throw away the navigator, contextdragconnection, even destroying the object), any accumulated AGVs behind it will not pick up on the fact that they are allowed to continue. I worked around that now by making sure that AGVs can never block a path connection point when they are deleted, and provided I can do that, clearing the navigator seems just as good a solution as any (claimed Control Points etc seem to get released correctly).

0 Likes 0 ·