当我尝试关闭并保存数据表时,我在日志中收到此错误:
访问或评估'关闭'时无效参数,关闭/ * ### * /(dt,filePath || waferId ||“多变量Correlations.txt”)
我的代码工作正常,直到最后一行(关闭函数)。 它将矩阵框中的数据输出到数据表中,所以我不明白为什么这个函数不起作用。 有任何想法吗?
谢谢!
filePath = Pick Directory( "Where do you want to save?" );
nw = New Window( "",
<<modal,
V List Box(
Text Box( "Enter Wafer ID:" ),
Spacer Box( Size( 25, 25 ) ),
wafername = Text Edit Box( "<Wafer ID>", <<Justify Text( Center ) ),
),
Spacer Box( Size( 25, 25 ) ),
H List Box( Button Box( "OK", waferid = wafername << Get Text) )
);
table1 = Current Report();
tableName = table << Get Window Title;
If( tableName == "CP1 and CP2 Data - Multivariate",
datamatrix = table1["Correlations"][Matrix Box( 1 )];
dt = datamatrix << make into data table;
dt << Set Name( waferId || " Multivariate Correlations" );
Close( dt, filePath || waferId || " Multivariate Correlations.csv" );
);