Hello,
I get a weird behavior using xop with Labtalk (Origin 2018b). I execute a large Labtalk program (ogs file) which calls the following definition:
Def macroTest {
/* Perform a multiple linear regression to compute the residuals */
/* ... some commands not shown here ... */
tree mrGUI;
xop execute:=init classname:=MR iotrgui:=mrGUI;
mrGUI.GUI.InputData.Range1.X$=col(WEEK);
mrGUI.GUI.InputData.Range1.Y$=col(%1);
/* to see the whole tree node, use command "mrGUI.=" after running this example */
mrGUI.GUI.Quantities.Parameters.ConfInterval = 1;
mrGUI.GUI.Quantities.Statistics.ReducedChiSq = 1;
mrGUI.GUI.ResAnalysis.Stad = 1;
mrGUI.GUI.Residuals.Graph3 = 1;
mrGUI.GUI.Residuals.Graph4 = 1;
mrGUI.GUI.Residuals.Graph5 = 1;
mrGUI.GUI.Residuals.Graph6 = 1;
mrGUI.GUI.Residuals.Graph7 = 1;
type -c "Unmodified value: " %1;
xop execute:=report iotrgui:=mrGUI;
type -c "Modified value: " %1;
xop execute:=cleanup;
/* ... some commands not shown here ... */
}
The first type command returns original content of %1 ("VM")
Unmodified value: VM
The second type command returns an unexpected content of %1
Modified value: C:\Program Files\OriginLab\Origin2018b\ReportPartial
Hence, %1 is modified during the macroTest execution!
The same program executed under Origin 2015 does not show up this issue.
Any idea to solve this ?
Thank you.
Origin Ver. and Service Release : OriginPro 2018b (64-bit) b9.5.5.409
Operating System: Windows 8.1