DADiSP Worksheet Functions > Function Categories > Real Time > RTSPIN

 

RTSPIN

Purpose:

Spins a 3D plot in Real Time.

Syntax:

RTSPIN(win, inc)

win

-

Optional. Window that contains a 3D plot. Defaults to the current Window.

inc

-

Optional. An integer. Spin increment in degrees. Defaults to 3 degrees. A value of 0 terminates the current RTSPIN.

Returns:

Nothing, spins the 3D plot.

Example:

W1: XYZ(gsin(100,.01,4),gcos(100,.01,4),0..0.01..0.99)

scalesoff

rtspin

 

spins the spiral 3 degrees in each direction. Because the spin routine is automatically executed in the background, the application is still responsive to user input while the plot spins.

Example:

W1: XYZ(gsin(100,.01,4),gcos(100,.01,4),0..0.01..0.99)

 

scalesoff

rtspin(w1, 8)

 

same as above except the spin increment is 8 degrees.

Remarks:

Use rtspin(0) to terminate the real time spin.

 

RTSPIN automatically adds itself to the real time task list using RTTINIT. Currently, only one RTSPIN function is active per real time session.

See Also:

ROTATE3D

RTTINIT

RTTTERM

SPIN

XYZ