Target Language Compiler | ![]() ![]() |
New Features and Compatibility Issues in
Versions 4.0, 4.1, and 5.0
New Features Added in Version 5.0
The following features have been added to the Target Language Compiler for Version 5.0 (MATLAB release 13). In addition, Real-Time Workshop 5.0 contains many fixes and enhancements that are potentially relevant to Target Language Compiler users. See the Real-Time Workshop Release Notes for a complete description. The Target Language Compiler 5.0 updates are:
SPRINTF
built-in formatting function has been added which returns a TLC string encoded with data from a variable number of arguments.
BlockInstanceData
function has been depreciated
BlockInstanceData
function. All data used by a block should be declared using data type work vectors (DWORK).
%filescope
, can be used to limit the scopes of variables to the files they are defined in. All variables defined after the appearance of %filescope
in a file will have this property, otherwise they will default to global variables.
::
operator to access global variables is now allowed in TLC files. Variables defined on the command line and records read from model
.rtw files will remain global variables. Nested include files cannot access variables local to the file which included them.
%assert
directive (which tests the value of a Boolean expression and issues an error message, prints a stack trace, and then exits if the result is FALSE
) is now easier to control.
%assert
tests in several ways: via the -da
command line switch, by the %setcommandswitch
directive within files, using the set_param(model, 'TLCAssertion', 'on|off')
command, or with a checkbox control on the Real-Time Workshop GUI. By default, the checkbox is empty (%assert
directives are ignored).
New Features Added in Version 4.1
The following features have been added to the Target Language Compiler for Version 4.1 (MATLAB release 12.1):
ISINF
, ISNAN
and ISFINITE
now work for complex values.
L
format specifier (as in L"string"
), TLC performs no escape character processing on that string. This is useful for specifying PC style paths without using double backslash characters.
LibBlockInputSignalConnected
LibBlockInputSignalLocalSampleTimeIndex
LibBlockInputSignalOffsetTime
LibBlockInputSignalSampleTime
LibBlockInputSignalSampleTimeIndex
LibBlockOutputSignalOffsetTime
LibBlockOutputSignalSampleTime
LibBlockOutputSignalSampleTimeIndex
LibBlockMatrixParameterBaseAddr
LibBlockParameterBaseAddr
LibBlockNonSampledZC
rtw/c/tlc/blkiolib.tlc
was reworked along with updating the help for LibBlockInputSignal
. See Input Signal Functions.
New Features Added in Version 4.0
The following features were added to the Target Language Compiler for Version 4.0 (MATLAB release 12):
model
.rtw
file. See model.rtw, for details. The size of the model
.rtw
file has been reduced.
model
.rtw
file; see ParamName
0
in model.rtw, for details.
FIELDNAMES
, GENERATE_FORMATTED_VALUE
, GETFIELD
, ISALIAS
, ISEMPTY
, ISEQUAL
, ISFIELD
, REMOVEFIELD
, SETFIELD
Support for 2-dimensional signals in inlined code.
INTMAX, INTMIN, TLC_TRUE, TLC_FALSE, UINTMAX
EXISTS
semantics (See Built-In Functions and Values).
%<>
||, &&, ?:, %if-%elseif-%else-%endif
)
FEVAL.
You can now pass records and structs to FEVAL
.
![]() | Search Algorithm for Locating Target Files | Compatibility Issues | ![]() |