Simulink model to model transformation
Show older comments
Hi, I want to do a transformation from one Simulink model to another, and I would like some opinions on what is the best approach.
I was thinking to do it in Java using the Conqat Simulink parser (<http://conqat.in.tum.de/index.php/Simulink_Library>). The problem is that Conqat is read only - I can parse the source model, manipulate it, but there is no nice and simple way (I'm aware of) to write the destination model to an .mdl file.
Another possible approach would be to parse the source model using Conqat, go from this to EMF and use QVT for the transformation. But here there is again the above problem, how to go back from EMF to .mdl.
So in the end I used Matlab's API for manipulating Simulink models (functions like find_system, add_block, add_line...), but this is a mess. Also the formats of my source and destination models (the metamodels for my Simulink models) will change often, meaning that it will be hard to maintain the transformation. This is the reason I would like to take it from the Matlab language into something more maintainable.
I will be very grateful for any opinions on this, as googling did not give me any useful results.
Answers (0)
Categories
Find more on Programmatic Model Editing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!