User`s guide
isrunning
Purpose Determine whether processor is executing process
Syntax isrunning(cc)
Description isrunning(cc) returns 1 when the processor is executing a program.
When the processor is halted,
isrunning returns 0.
Using isrunning with Multiprocessor Boards
When your board contains m ore than one processor, isrunning checks
each processor o n the processor, as defined by the
cc object, and returns
the state for each processor on the board. In the returned variable
b,you
find a vector that contains the information for each accessed proce ssor.
By providing a return variable, as shown here,
b = isrunning(cc)
b
contains a vector that holds the information about the state of all
processors accessed by
cc.
Examples isrunning lets you determine whether the processor is running. After
you load a program to the processor, use
isrunning to be sure the
program is running before you enable RTDX channels.
cc = ticcs;
isrunning(cc)
ans =
0
% Load a program to the processor.
run(cc)
isrunning(cc)
ans =
7-73