Hello,
I am considering to use the legacy code tool as suggested in
to compile a large bunch of code into an S-Function on Matlab 2007b. I would like to use buses and I am folliwing the example in sldemo_lct_bus_script.m, the problem is that I DO have the header files with the typedef structs definition of the buses, but I DONT have the simulink.bus object files. It seems that I will have to manually build these objects making sure they are coherent with the typedef struct definitions on the header.
My questions are:
- why does LCT needs the redundant simulink.bus object in the workspace if this information is already contained in the header files as a typedef struct?
- is my responsibility to guarantee that the headers and the simulink.bus objects are coherent with each other? this is error prone, time-expensive and must be done each time the header files changes (game stopper probably).
- is there a way to convert from the header files to simulink.bus objects automatically?
thanks for your feedback on these matters.
Best Answer