User`s guide
run
Purpose Execute program loaded on processor
Syntax run(cc,'state',timeout)
run(cc,'main')
run(cc,'tofunc','functionname')
Description run(cc,'state',timeout) starts to execute the program loaded on the
processor referred to by
cc. Program execution starts f rom the location
of the program counter. After starting program execution, the input
argument
state determines when you regain program control.
To define the action of
run, state accepts strings that set the state
of the processor:
state String Run Action
'main'
Reset the program counter then run the
program until the PC reaches
main.Stopat
main.
'run'
Start to execute the program. Wait until the
program is running, then return. The program
continues to run. If you omit the
option
argument, run defaults to this setting. Sets
the processor to the running state and returns.
This is useful when you want to continue to
work in MATLAB software while the processor
executes a program.
'runtohalt'
Start to execute the program. Wait to return
until the program encounters a bre akpoint or
the p rogram execution terminates. Sets the
processor to the running state and returns
when the processor halts.
7-141