| Embedded IDE Link™ VS | ![]() |
run(vd)
run(vd,'runopt')
run(…,timeout)
run(vd) runs the program file loaded on the referenced processor, returning immediately after the processor starts running. Program execution starts from the location of program counter (PC). Usually, the PC is positioned at the top of the executable file. However, if you stopped a running program with halt, the PC may be anywhere in the program. run starts the program from the PC current location.
If vd references more the one processor, each processors calls run in sequence.
run(vd,'runopt') includes the parameter runopt that defines the action of the run method. The options for runopt are listed in the following table.
| runopt String | Description |
|---|---|
| run | Executes the run and waits to confirm that the processor is running, and then returns to MATLAB. |
| runtohalt | Executes the run but then waits until the processor halts before returning. The halt can be the result of the PC reaching a breakpoint, or by direct interaction with VisualDSP++ IDE, or by the normal program exit process. |
run(…,timeout) adds input argument timeout, to allow you to set the time-out to a value different from the global time-out value. The timeout value specifies how long, in seconds, MATLAB waits for the processor to start executing the loaded program before returning.
Most often, the run and runtohalt options cause the processor to initiate execution, even when a time-out is reached. The time-out indicates that the confirmation was not received before the time-out period elapsed.
![]() | reset | save | ![]() |
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |