MATLAB Link for Code Composer Studio Development Tools | ![]() ![]() |
Execute a function on a target through Code Composer Studio
Syntax
Description
execute(ff)
runs the function specified by handle ff
on your target hardware. When you do not specify values for the inputs to the function, execute
uses the values stored in property inputvars
for the arguments. The function runs until the end of the function, or until it reaches a breakpoint. After executing the function, the execution process puts the return in the assigned location in property outputvar
of ff
. From MATLAB, use read
to check the result stored in outputvar
.
Before you use execute
to run a function, use goto
to position the program counter to the beginning of the function. execute
assumes that you have completed this step; it does not search for the function. Execution starts from the program counter location and continues to the end of the function or an intervening breakpoint.
You must set the property outputvar
for ff
before you run your function. execute
fails if you have not set outputvar
prior to executing ff
.
execute(ff,input1, value1,...,inputn,valuen)
runs the function identified by ff
, first writing the input values assigned by the input1
, value1
, input2
, value2
, and so on pairs to inputvars
. input1
, input2
,...,inputn
must be strings
See Also
![]() | equivalent | flush | ![]() |