LabTalk Callable OC function to Execute an Operation
(ORG-7877)
Click on the recalculate lock and select Show Info from the context menu to get the "operation_uid", then run execute_operation function.
execute_operation(operation_uid);
Improve LabTalk "type -gb" command for text file output
(ORG-8306)
type -gb [[e][f][r/n]] fileName;
Option | Description |
---|---|
e | Output to new empty file, if not specified then text is appended. Will erase existing one. |
f | Output to file only, no output to script window. |
n | Output LF for end-of-line. |
r | Output CR for end-of-line. |
Neither n nor r specified | Output CRLF for end-of-line. |
New line is \r\n by default, n = use \n as new line, r = use \r as new line.
Better error checking in LabTalk function (ORG-9155)
In an OGS file, add the following script, and then run the main section, the error message will go to Message Log.
[Main] Function int aa(int nn) { ty "inside function"; sdf;//error return 1; } int nErr = aa(0); ty "after function";
Labtalk Function to Generate Patterned Data
(ORG-7900)
- To generate numeric data:
col(A)=pattern(1,10,2,2,3); // from, to, inc, value repeat count, sequence repeat count
- To generate string data:
stringarray sa; sa.Add("NY"); sa.Add("MA"); col(B)=pattern(sa, 2, 3); // string sources, value repeat count, sequence repeat count //can also allow quoted string separated by pipe, comma, or space col(B)=pattern("NY|MA", 2, 3); col(B)=pattern("NY,MA", 2, 3); col(B)=pattern("NY MA", 2, 3);
- To generate pattern data based on a column:
col(B)=pattern(col(c), 2, 3); //data source, value repeat count, sequence repeat count col(B)=uniform(30, col(A)); //randomly choose 30 elements from col(A) to fill col(B)
Range Notation Improvements
- Support Variables for Row Subrange Notation:
int a = 1; int b = 12; range rr=col(1)[a:b];
- Support Range Declaration for Local Loose Dataset:
dataset ds1,ds2; range rngld1=[??]!ds1; range rngld2=[??]!ds2[10:15]; range aa=1!1, bb=2[10:15]; //Given col(a)&col(b) is filled with row numbers: rngld1=aa; rngld2=bb;
- preserve double quotes:
range r1 = 1!; //First sheet in the activated workbook range r2 = "1!"; //Column with long name "1!"
New Added System Variables
Function Area | Variable | Type | Default | Supported | Description |
---|---|---|---|---|---|
Smart Labeling | @SLD | bool | 0 | globally enable smart labeling of data label | |
@SLDF | double | [0.0, 1.0] | favor count factor, missing value means auto | ||
@SLDL | bool | 0 | look ahead | ||
@SLDM | double | measure constant variant, missing value means auto | |||
@SLDR | double | ray number, -1 means auto | |||
@SLDG | double | Smart Labeling reposition gap | |||
Hidden Row | @GMH | bool | 0 |
| |
@b3d0 | bool | 1 | whether minus values needs down drawing | ||
@b3d0b | bool | 1 | whether z=0 face shows black color | ||
Polar Grid | @DPA | 3 | % of DPI as a minimum distance between closest grids | ||
@CWS | int | 13 | Change Worksheet search option bits. 1 = Compare column short name 2 = Compare column long name 4 = Compare column designation 8 = Compare column index. | ||
@OGLSL | bool | 1 | Enable shearing for axis titles and tick labels if they are in axis plane and 3D cube has been sheared. 0= Disable their shearing. | ||
@TFS | int | 1 | 0,1,2,3 | Text Filter label display 0=Enter, 1=Space (default), 2=Comma, 3=Semicolon | |
@TFL | double | 50 | The max length of text filter label | ||
@AUFL | bool | if it is non-zero, always set Auto as auto update mode; if @AUFL equals to zero, check whether there is an operation in the column, if there is, keep therecalculate mode, otherwise, set Auto as recalculate mode. |