| Contents | Index |
arg = getTflArgFromString(hTable, name, datatype)
Handle to a CRL table previously returned by hTable = RTW.TflTable.
String specifying the name to use for the CRL argument, for example, 'y1'.
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'.
Handle to the created CRL argument, which can be specified to the addConceptualArg function. See the example below.
The getTflArgFromString function creates a CRL 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 CRL table entry.
hLib = RTW.TflTable;
op_entry = RTW.TflCOperationEntry;
.
.
.
arg = hLib.getTflArgFromString('y1', 'int16');
arg.IOType = 'RTW_IO_OUTPUT';
op_entry.addConceptualArg( arg );
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 |