RSiertsema
Netherlands
8 Posts |
Posted - 04/22/2014 : 07:25:26 AM
|
Origin Ver. and Service Release (Select Help-->About Origin): Origin 8.5.1 SR2 Operating System: windows 7 prof.
Hello Forum,
I need your kind help with an analysis template issue!
I have a problem with an analysis template: my data sheet locks up after the analysis has run. I have a script pre-arranging the workbook for the analysis that follows (integrated with the import wizard). When I run the script from the script window, there is no problem. Even when I do the desired analysis by hand afterwards, there is no issue. However, when I run the analysis template ( the exact same analysis I do by hand ), the original data sheet locks up, making it impossible to view the data. Everything else in the analysis runs fine, including the acquired data. Copying the data sheet beforehand in the script does not help, it becomes a blank, grey sheet.
The script is as follows:
quote: //name Longname and worksheet;
win -r %H DST; wks.name$=Data Sheet; col(1)[L]$= "Temp"; col(2)[L]$ = "0 Field H"; col(3)[L]$ = "0 Field C"; col(4)[L]$ = "0.5T H"; col(5)[L]$ = "0.5T C"; col(6)[L]$ = "1.0T H"; col(7)[L]$ = "1.0T C"; col(8)[L]$ = "1.5T H"; col(9)[L]$ = "1.5T C";
//plot all S curves;
plotxy ((1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9)) plot:=200 ogl:=[<new template:=MDSC>];
//remove the legend, add title label -r legend; label S curves;
//name y-axis and x-axis YL.text$="S (J/K/kg)"; XB.text$="T(K)";
win -r %H dS;
win -a DST;
//plot all dT curves;
plotxy ((2,1),(3,1),(4,1),(5,1),(6,1),(7,1),(8,1),(9,1)) plot:=200 ogl:=[<new template:=MDSC>];
//remove the legend, add title label -r legend; label T curves;
//name y-axis and x-axis YL.text$="T(K)"; XB.text$="S(J/K/kg)";
win -r %H dT;
win -a DST;
//create dS data, name columns and plot them
col(10) = col(2)-col(4); col(11) = col(2)-col(5); col(12) = col(2)-col(6); col(13) = col(2)-col(7); col(14) = col(2)-col(8); col(15) = col(2)-col(9);
col(10)[L]$ = "-dS 0.5T H"; col(11)[L]$ = "-dS 0.5T C"; col(12)[L]$ = "-dS 1.0T H"; col(13)[L]$ = "-dS 1.0T C"; col(14)[L]$ = "-dS 1.5T H"; col(15)[L]$ = "-dS 1.5T C";
plotxy ((1,10),(1,11),(1,12),(1,13),(1,14),(1,15)) plot:=200 ogl:=[<new template:=MDSC>];
//remove the legend, add title label -r legend; label "-\g(D)S";
//name y-axis and x-axis YL.text$="-\g(D) S (J/K/kg)"; XB.text$="T(K)";
win -r %H Delta S;
win -a DST;
//extra for importing Cp file
newbook; dlgfile g:=ascii; impAsc; plotxy ((1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9)) plot:=200 ogl:=[<new template:=MDSC>]; win -r %H Cp curves; label -r legend; label "Cp"; YL.text$="Cp J/K/kg";
After running this script, it uses peak finder for the 6 "-dS" columns and reports these.
In short, when done separately, no problem. When this runs in a analysis template, the data sheet locks up.
small side note: I have a lot of "//extra text" in the script for myself to keep track of all the things it does.
Thanks in advance.
With kind regards,
Reinier
|
|