lharri73 / PySimlink

Compile, run, and interact with Simulink models natively in Python. https://lharri73.github.io/PySimlink/
GNU General Public License v3.0
15 stars 4 forks source link

Failed to compile model with enums and nested bus objects #20

Open Thandre opened 1 month ago

Thandre commented 1 month ago

I have problems compiling a model that contains enums and nested bus objects. It seems that the struct_parser.py doesn't support this. When I try to implement some exceptions for these types the model compiles but it crashes when I read out the model (e.g. with get_block_param()).

I have attached a model that contains the things to reproduce the error. Model.zip