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 个)

类别

帮助中心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