How to access logging data from C++ simulink generated code

3 views (last 30 days)
Hi,
I have created a project on Simulink and generated C++ code so I can integrate it with another software. When generating the code I selected the C API interface option would have access to the data.
I have 3 ToWorkspace blocks on the Simulink model that are converted to LogVar* variables. One of them is stored on this pointer: PhysicalLayerModel_DW->ErrorVars_PWORK.LoggedData, where PhysicalLayerModel_DW is my model structure. All the logvars seem to be update by the function rt_UpdateLogVar in the ModelName_step function.
My question is how can I access this LogVar* from the C API interface. If that is not possible, what is the simplest way. I would like to create a data stream with those variables so I can analyse them.
Thanks in advance.
Lucas

Answers (0)

Categories

Find more on Deployment, Integration, and Supported Hardware 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!