Target Language Compiler | ![]() ![]() |
Further Hints
%assign
.CAST
to ensure that parameter values entered in the mask as 1
are cast to a real 1.0
.CAST
function is not required for varType
and hwAddress
since varType
is a string while hwAddress
is a hex value that is used with no change.rtw
file called dp.rtw
. (You can use rtwgen
to generate the rtw
file for the model while you are iterating on your own TLC file.%assign
's for varType
and hwAddress
see page 8-21 for handling the string that must be read in from the .rtw
file. Use a library function. See Chapter 9, TLC Function Library Reference.%assign
to setup the variable y
as an output.Outputs
function produce the lines of code that appear in the mdlOutput
section of the generated code.![]() | Exercise | Solution | ![]() |