getTflArgFromString - Create code replacement argument based on specified name and built-in data

     type - MATLAB ([original](https://in.mathworks.com/help/ecoder/ref/gettflargfromstring.html)) ([raw](?raw))

Main Content

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

Syntax

Description

Examples

collapse all

This example shows how to usegetTflArgFromString to create anint16 output argument named y1. Then, the example adds the argument as a conceptual argument for a code replacement table entry.

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

Input Arguments

collapse all

The hTable is a handle to a code replacement table previously returned by _`hTable`_ = RTW.TflTable.

Example: hLib

Built-in data type or fixed-point data type to use for the code replacement argument. You can specify fixed-point data types using the fixdt function from Fixed-Point Designerâ„¢ software; for example, 'fixdt(1,16,2)'. To specify a pointer argument, use the symbol * after the data type name; for example, 'double*'.

Example: 'integer'

Example: 'double*'

Output Arguments

collapse all

The arg is a handle to the created code replacement argument, which can be specified to theaddConceptualArg function.

Version History

Introduced in R2008a