Is there a tool to generate a bus object from an IDL file?

I have to create an S-fcn which takes a lot of buses as inputs and wraps some legacy code which uses IDL data bindings to C++. As these data structures defined in IDL are very large, I do not want to retype them all as Simulink bus object definitions. I was wondering if there is a way in Simulink to load an IDL file, and to generate bus definitions for the structures in this IDL file?
Thanks a bunch.

回答 (2 件)

Kaustubha Govind
Kaustubha Govind 2013 年 8 月 14 日

0 投票

If you can produce MATLAB structures from the IDL file, you can use Simulink.Bus.createObject to create the corresponding bus objects.
Nikita Visnevski
Nikita Visnevski 2013 年 8 月 14 日

0 投票

Well, I guess my question then really was if there was a way to do IDL to Matlab data structure translation? I have several hundreds of data structures defined in thousands of lines of IDL. It is any form of retyping that I am trying to avoid.

カテゴリ

ヘルプ センター および File ExchangeModeling についてさらに検索

製品

質問済み:

2013 年 8 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by