I seem to have found a bit of an oddity.I have a fragment of script that for several small datafiles loads a worksheet template, loads the data, renames the template and minimises it.
I've found that unless I put a "sec -p 0.1" between the data load command and the rename window command, I risk losing columns from the imported data. I also risk destabilising Origin to the extent that the script will cause a crash the next time it is run. This implies to me that the data load is being carried out in a different thread from the script execution and there is a signalling problem.
Is there any explanation for this, and has anyone else experienced similar? This is Origin6 patch 1 on NT6 SP6.
An example of one of the data-load "modules" is here, in case anyone can see a glaring error.
window -t data xyxyxy.otw;
open -w D:\Data\Test DLTS data\A28 Device\DS_000_DataMin_YG0.dat;
sec -p 0.1;
window -r %H YMin;
window -i;