The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 data sheet locks up

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
RSiertsema 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
1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 04/22/2014 : 2:06:39 PM
I am not sure what you are using as an Analysis Template since everything you have done so far is just script and you have no operations that update.
Maybe it would be best if you sent your project file along with any scripts, data files and instructions to tech@originlab.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000