Any way to serialize/​checkpoint​-restore models from auto-generated C++ code via Simulink Coder

1 view (last 30 days)
We have a number of models in a simulation that are produced in Simulink and then converted to C++ via Simulink coder. We are looking to add the ability to implement a save/restore feature (i.e. serialization/checkpointing) for our sim, and I'm trying to determine the best approach for our Simulink models. For the hand coded models, we will likely end up using Boost.Serialization. That won't (easily) work for our Simulink models since it requires you to write out all members of the generated classes, which aren't known ahead of time.
I'm wondering if there is a native feature to accomplish this, or if anyone has any better ideas.

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!