Set up and use techniques and capabilities for exchanging data between generated and external application code.
Data interfaces are available for exchanging data between generated and external code or data. Use the C API to write code that interacts with generated code. Export an ASAP2 file for a measurement, calibration, and diagnostic system.
To log data to a MAT-file during execution of generated code, see Log Program Execution Results.
|Create ASAP2 file with IF_DATA XCP block that describes the Simulink Coder XCP slave configuration|
Write host-based or target-based application code that interacts with generated model code.
Write application code to interact with model signals and states.
Write application code to interact with model parameters.
Configure model for ASAP2 file generation.
Generate XCP external mode target application and ASAP2 file that describes XCP slave configuration.
Edit Target Language Compiler (TLC) files to customize the ASAP2 file generated from a Simulink® model.
Control data representation in the generated code by applying storage classes directly, which overrides the default storage classes that you specify in the Code Mapping Editor.
In the generated code, create tunable parameter data that you can access during rapid prototyping and calibration.