Extracting Simulink Data to C-Library during runtime (Book suggestion?)

Hello Everybody, I work on a satellite attitude control system simulator using Simulink. For visualization purposes, I want to extract attitude data from the simulator to a C-Library during runtime. Another program would use this data to visualize the satellite during its flight around Earth.
I haven't worked on syncing MatLab with another program before, so I don't really have a thorough understanding of what I am talking about.
Does anybody have suggestions on how to tackle this problem? Any good books describing this kind of problem?
Thanks for any input!

Answers (1)

You could use the MATLAB Engine API to call into MATLAB from an external C-library: Calling MATLAB Software from C/C++ and Fortran Programs
Use the model command to run the simulation step-by-step.

This question is closed.

Asked:

on 8 Feb 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!