RTTPAUSE

Purpose:

Pauses a real time task in the queue.

Syntax:

RTTPAUSE(tasknum, mode)

tasknum

-

An integer. The task number returned by RTTINIT.

mode

-

Optional. An integer, the pause mode:

0:

Continue processing task

1:

Pause task execution (default)

Returns:

An integer, 1 if paused, else 0.

Example:

Start first DADiSP to simulate a real time data source:

 

rttinit("rtwrite")

 

Start second DADiSP to read real time data:

 

rtnum = rttinit("rtread")

 

The series generated by the first DADiSP is read synchronously by the second DADiSP. The real time data appears in W1 of the second DADiSP.

 

Pause the RT reading task:

 

rttpause(rtnum)

 

The task is suspended and no new data is read.

 

Continue the RT reading task:

 

rttpause(rtnum, 1)

See Also:

ASCALE

RTREAD

RTTINIT

RTTTERM

RTWRITE