Main Content

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.

Version History

Introduced in R2012b