Main Content

Software-in-the-Loop Execution for MATLAB Function with Multiple Signatures

For MATLAB® function with multiple signatures, software-in-the-loop (SIL) enables you to verify the generated C/C++ code by using a SIL MEX file that supports multiple signatures. This feature enables you to generate one SIL MEX file for verification instead of generating separate SIL MEX files for each signature.

Generate Multisignature SIL MEX File for an Entry-Point Function

  1.  MATLAB code for myAdd function

  2.  Configure SIL execution

  3.  Generate code using codegen command

  4.  Run generated SIL MEX file myAdd_sil

  5.  Terminate SIL execution

  6.  Entry Point Summary Report

Generate Multisignature SIL MEX File for Multiple Entry-Point Functions

  1.  MATLAB code for myAdd and myMul functions

  2.  Configure SIL execution

  3.  Generate code using codegen command

  4.  Run generated SIL MEX file myMath_sil

  5.  Terminate SIL execution

  6.  Entry Point Summary Report

Example main file provides information about how to use entry-points in your application. Incorporate Generated Code Using an Example Main Function, helps to generate example main.c file.

Note

You can implement the multisignature PIL MEX for an entry-point function and multiple entry-point functions in the same way that the multisignature SIL MEX is implemented.

Limitations

The multisignature SIL MEX and PIL MEX generation does not have graphical user interface (GUI) support.

See Also

|

Related Topics