Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

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;
OptionDescription
eOutput to new empty file, if not specified then text is appended. Will erase existing one.
fOutput to file only, no output to script window.
nOutput LF for end-of-line.
rOutput CR for end-of-line.
Neither n nor r specifiedOutput 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)

/// numeric
col(A)=pattern(1,10,2,2,3); /// from, to, inc, value repeat count, sequence repeat count
/// string
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);
//also, can have it from a range
col(B)=pattern(col(c), 2, 3);

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;

New Added System Variables

NameDescription
  
  
  • No labels