| Embedded IDE Link™ CC | ![]() |
output_val = execute(ff)
output_val = execute(ff,input1,value1,...,inputn,valuen)
output_val = 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 value in the assigned location in property outputvar of ff. From MATLAB® software, use read to check the result stored in outputvar. In this form, output_val holds the return value from executing the function.
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.
output_val = execute(ff,input1,value1,...,inputn,valuen) runs the function identified by ff, first writing the input values assigned by the inputn/ valuen pairs to inputvars. Arguments input1, input2,...,inputn must be strings. input1 through inputn can be either the names of the input arguments, or the number of the input argument in the argument list, such as 1 for the first argument, 2 for the second, up to n for the nth argument on the list. In this form, output_val holds the return value from executing the function. You must call goto before using this syntax, or execute fails.
![]() | equivalent | flush | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |