| Real-Time Workshop® Embedded Coder™ | ![]() |
Create TFL argument based on specified name and built-in data type
TflArg* getTflArgFromString(hTable, name, datatype)
Handle to a TFL table previously returned by hTable = RTW.TflTable.
String specifying the name to use for the TFL argument, for example, 'y1'.
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'.
Handle to the created TFL argument, which can be specified to the addConceptualArg function. See the example below.
The getTflArgFromString function creates a TFL argument that is based on a specified name and built-in data type.
Note The IOType property of the created argument defaults to 'RTW_IO_INPUT', indicating an input argument. For an output argument, you must change the IOType value to 'RTW_IO_OUTPUT' by directly assigning the argument property. See the example below. |
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 );Creating Function Replacement Tables in the Real-Time Workshop® Embedded Coder™ documentation
Target Function Libraries in the Real-Time Workshop Embedded Coder documentation
![]() | getPreview | importer | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |