Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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.m in the Simulink model sldemo_msfcn_lms for an example.

Introduced in R2012b

Was this topic helpful?