Skip to Main Content Skip to Search
Product Documentation

getTflArgFromString - Create CRL argument based on specified name and built-in data type

Syntax

arg = getTflArgFromString(hTable, name, datatype)

Input Arguments

hTable

Handle to a CRL table previously returned by hTable = RTW.TflTable.

name

String specifying the name to use for the CRL argument, for example, 'y1'.

datatype

String specifying the built-in data type to use for the CRL argument, among the following:'int8', 'int16', 'int32', 'uint8', 'uint16', 'uint32', 'single', 'double', or 'boolean'.

Output Arguments

Handle to the created CRL argument, which can be specified to the addConceptualArg function. See the example below.

Description

The getTflArgFromString function creates a CRL argument that is based on a specified name and built-in data type.

Examples

In the following example, getTflArgFromString is used to create an int16 output argument named y1, which is then added as a conceptual argument for a CRL table entry.

hLib = RTW.TflTable;
op_entry = RTW.TflCOperationEntry;
.
.
.
arg = hLib.getTflArgFromString('y1', 'int16');
arg.IOType = 'RTW_IO_OUTPUT';
op_entry.addConceptualArg( arg );

See Also

addConceptualArg

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS