View Raw SPL
/*****************************************************************************
* *
* GETAUTOSCALE.SPL Copyright (C) 2018 DSP Development Corporation *
* All Rights Reserved *
* *
* Author: Randy Race *
* *
* Synopsis: Gets window autoscaling mode *
* *
* Revisions: 13 Jul 2018 RRR Creation *
* *
*****************************************************************************/
#include
#if @HELP_GETAUTOSCALE
GETAUTOSCALE
Purpose: Gets window autoscaling mode.
Syntax: GETAUTOSCALE(win)
win - Optional. A window, defaults to current window.
Returns: An integer, 0, autoscaling disabled or 1, autoscaling enabled.
Example:
W1: gsin(1000,1/1000,4);setautoscale(0);
getautoscale(w1)
Returns 0, indicating X and Y axis autoscaling is disabled.
Remarks:
GETAUTOSCALE is useful for data in real time Windows.
See Also:
Rttinit
Getxautoscale
Getyautoscale
Setautoscale
Setxautoscale
Setyautoscale
#endif
/* return XY autoscaling */
getautoscale(win)
{
local xyauto;
xyauto = setautoscale(win);
return(xyauto);
}