Use (block) handles within Java

Hello everybody,
I want to read the information of a simulink model in java. So far, everything is straightforward except for the connectors between the the blocks and ports. If i call get_param for 'PortConnectivity' I get a value 13.0010 for the DstBlock. This seems to be the id of the handler. Is it possible to work with this id, for e.g.
get_param(13.0010, 'Name')
This is important to use the handles in java.
I am thankful for any help.
Greets

 채택된 답변

Titus Edelhofer
Titus Edelhofer 2011년 11월 23일

0 개 추천

Hi,
yes and no: you can use get_param for retrieving information, but not by using 13.0010 (since this is the string representation of some double precision number, the call above will give an error about unknown handle). Working with the double you got from the previous get_param call will work.
Titus

추가 답변 (1개)

ptrash
ptrash 2011년 11월 23일

0 개 추천

Thanks a lot. It works.

카테고리

도움말 센터File Exchange에서 Call Java from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by