필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

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

조회 수: 1 (최근 30일)
Can A Multicast Sender send to a tag which is dynamically determined from an attribute in the entity which it is sending?

답변 (3개)

Krishna Akella
Krishna Akella 2018년 12월 10일
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
Elliott Rachlin
Elliott Rachlin 2018년 12월 10일
This answer only works if the destination tag is known at compile time, not if it is determined dynamically at runtime.

Krishna Akella
Krishna Akella 2018년 12월 11일
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

Elliott Rachlin
Elliott Rachlin 2018년 12월 11일
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

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by