MATLAB Answers

Can A Multicast Sender send to a tag which is dynamically determined from an attribute in the entity which it is sending?

2 views (last 30 days)
Elliott Rachlin
Elliott Rachlin on 17 Jul 2018
Answered: Elliott Rachlin on 11 Dec 2018
Can A Multicast Sender send to a tag which is dynamically determined from an attribute in the entity which it is sending?

  0 Comments

Sign in to comment.

Answers (3)

Krishna Akella
Krishna Akella on 10 Dec 2018
Hi Elliot,
I don't think thats possible. The alternative would be to use an input switch and route the entity to an appropriate Entity Multicast sender blocks. That should do the trick.
- Krishna

  1 Comment

Elliott Rachlin
Elliott Rachlin on 10 Dec 2018
This answer only works if the destination tag is known at compile time, not if it is determined dynamically at runtime.

Sign in to comment.


Krishna Akella
Krishna Akella on 11 Dec 2018
Hi Elliot,
I think I don't understand your question well. I have attached a model based on what I understood. Where entity.type is determining the destination of the multicase receiver where it is routed to. If this is not what you mean, can you please elaborate a bit?
- Krishna

  0 Comments

Sign in to comment.


Elliott Rachlin
Elliott Rachlin on 11 Dec 2018
What I needed to do is different. Something like this:
Solution #1:
if (Entity.branch==1) TAG = TAG_A
else if (Entity.banch==2) TAG = TAG_B
Solution #2
TAG = Entity.Tag_String

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by