Documentation Center

  • Trial Software
  • Product Updates

Contents

WriteRTW

Generate code generation data for the MATLAB S-function

Required

No

Language

MATLAB

Syntax

WriteRTW(s)

Arguments

s

Instance of Simulink.MSFcnRunTimeBlock class representing the Level-2 MATLAB S-Function block.

Description

This function is called when the Simulink® Coder™ product is generating the model.rtw file.

In Level-2 MATLAB S-functions, use the run-time object's WriteRTWParam method to write custom parameters to the model.rtw file.

Example

See the S-function adapt_lms.madapt_lms.m in the Simulink model sldemo_msfcn_lmssldemo_msfcn_lms for an example.

Was this topic helpful?