isrunning - Determine whether processor is executing process

Syntax

isrunning(vd)

Description

isrunning(vd) returns 1 when the processor is executing a program. When the processor is halted, isrunning returns 0.

Examples

isrunning lets you determine whether the processor is running. After you load a program to the processor, use isrunning to verify that the program is running.

vd = adivdsp

ADIVDSP Object:
  Session name     : Testsession
  Processor name   : ADSP-BF533
  Processor type   : ADSP-BF533
  Processor number : 0
  Default timeout  : 10.00 secs

visible(vd,1)
load(vd,'adi.dxe','program')
run(vd)
isrunning(vd)

ans = 

     1
halt(vd)
isrunning(vd)

ans = 

     0

See Also

halt

load

run

  


 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS