How to get handle of the block calling Matlab.System funcion from within the called function?
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi,
I would like to use several Matlab.System blocks, which are defined by the same Matlab.System function. However, I need to find out the name or handle to the block, which calls the matlab.System function.
To be more specific - let's see the screenshot. I have two Matlab System blocks, SimilarSystem1 and SimilarSystem2 and both of them I would like to implement with the same class CommonDefinition. In the stepImpl method of the CommonDefinition class I would like to be able to distinguish, if the function is called from the SimilarSystem1 or SimilarSystem2.
In this case, will Matlab create two instances of CommonDefinition class or only one instance will be created and used for both blocks?
Thank you.
O.Z.

댓글 수: 0
답변 (1개)
Jimmy Clarenburg
2020년 11월 9일
Hi Ondrej Zlevor,
Did you get this to work? I am trying to do something similar.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Create System Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!