LabTalk Object Type:
The limiting values resulting from the limit command are placed in the following limit object properties.
Property | Access | Description |
---|---|---|
limit.iMax | Read only, numeric |
Corresponding index for maximum Y value. |
limit.iMin | Read only, numeric |
Corresponding index for minimum Y value. |
limit.size | Read only, numeric |
Total size (number of points) for dataset. |
limit.xMax | Read only, numeric |
Maximum X value. |
limit.xMin | Read only, numeric |
Minimum X value. |
limit.yMax | Read only, numeric |
Maximum Y value. |
limit.yMin | Read only, numeric |
Minimum Y value. |
This script gets the limits of the active dataset, and then creates a new worksheet with an X and Y dataset based on the limit object properties.
Limit %C; //Get limits of current dataset win -t data; //Create a new worksheet %(%H,1) = data(limit.xmin,limit.xmax,1); //Set new X data to range from Xmin to Xmax in steps of 1 %(%H,2) = data(limit.ymin,limit.ymax,1); //Set new Y data to range from Ymin to Ymax in steps of 1