Is it possible to get port names of a masked C-MEX s-function block?

조회 수: 3 (최근 30일)
Sunny Talekar
Sunny Talekar 2018년 6월 29일
Hi,
I have some third-party C-MEX s-function library blocks. These blocks have been masked and the ports are labelled using "port_label()". Is there a way of getting the port names programmatically?
This is what I have tried so far:
PH = get_param(<block_path>, 'PortHandles');
PortName = get_param(PH.Inport(1), 'Name');
But it returns an empty array.
I need to retrieve the name of the port even when the port is not connected so cannot use the approach specified here.
Given that these are 3rd-party libraries, we do not have any control over their implementation.
Any pointers would be much appreciated.
Many thanks
sunny

답변 (0개)

카테고리

Help CenterFile Exchange에서 Author Block Masks에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by