question

Aditya Prakash avatar image
0 Likes"
Aditya Prakash asked Mischa Spelt answered

update ports after a new contextdragconnection().

Is it possible to update I/O ports of an object during a simulation run. Lets say I create a new connection in an event trigger, using contextdragconnection(). But upstream object is not updating it's Output port list. SendTo logic is round robin but the newly added processor remains idle. What to do ? sample.fsm

connections
sample.png (154.3 KiB)
sample.fsm (15.8 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.

1 Answer

·
Mischa Spelt avatar image
3 Likes"
Mischa Spelt answered

When you create a connection, both sides are closed by default. Processors have their input open when they are accepting items. After the contextdragconnection, try

openip(node("MODEL:/Processor6"), 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.

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.