Cicode Programming Reference > Cicode Function Categories > Trend Functions Introduction > TrnEcho

TrnEcho

Enables and disables the echo of the trend display. Use this function when you need to make many changes to a trend display, so that the display updates only once. You should first disable the trend echo, do all the trend changes, and then enable the echo to show the changes.

Syntax

TrnEcho(AN, nMode)

AN:

The animation number of the trend.

nMode:

The mode of the echo:

0 - Disable echo of the trend display.

1 - Enable echo of the trend display, to show changes.

Return Value

The current echo mode, otherwise 0 (zero) is returned, and an error code is set. You can call the IsError() function to get the actual error code.

Related Functions

TrnSetScale, TrnSetPeriod

Example

! Disable echo of trend display at AN40
TrnEcho(40,0);
! Change the scales on pens 1 and 2
TrnSetScale(40,1,0,-1000);
TrnSetScale(40,1,100,-1000);
TrnSetScale(40,2,0,-1000);
TrnSetScale(40,2,100,-1000);
! Enable echo to show changes to the display
TrnEcho(40,1);

See Also

Trend Functions