Limit-obj
LabTalk Object Type:
The limiting values resulting from the limit command are placed in the following limit object properties.
Corresponding index for maximum Y value.
Corresponding index for minimum Y value.
Total size (number of points) for dataset.
Maximum X value.
Minimum X value.
Maximum Y value.
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