getTflArgFromString

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

Syntax

TflArg* getTflArgFromString(hTable, name, datatype)

Arguments

hTable

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

name

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

datatype

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

Returns

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

Description

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

Example

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 TFL 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

Creating Function Replacement Tables in the Real-Time Workshop® Embedded Coder™ documentation

Target Function Libraries in the Real-Time Workshop Embedded Coder documentation

  


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