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
 Resetting Origin

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
Dizzy Posted - 02/02/2005 : 04:31:13 AM
Origin Version (Select Help-->About Origin): 6.0G
Operating System:Win xp

Hi All!
How is it possible to reset Origin to the settings direct after install? I made some changes with scripts and do not remember all of the settings changed unintentional. I wrote a script giving me a wks to be stored results of fitting in and in the docu is written, that the method I use creates a hidden wks, but I get a minimized one.
Besides enumerate doesn't work any more as well as wks label - see the following script (create.ogs). I should have saved it in another filename - I know now. It seems to be very obvious, but I could not find it in any of the docu.

[main]
create.wksName$="Result";
create.template$="TEST";
create.wkslabel$="Analysis numerical";
create.npts=300;
create.enumerate=1;
create.numtypes=2;
create.type1=4;
create.type2=1;
create.typeN=1;
create.wks(A B C D E F);
Result!wks.col1.label$=Temp.;
Result!wks.col2.label$=Peak-Pos.;
Result!wks.col3.label$=Int.;
Result!wks.col4.label$=FWHM Gauss;
Result!wks.col5.label$=FWHM Lorentz;

With this script saved as OGS-file I created a button and it worked well at the beginning. This button could be pressed several times and new wks minimized were created and enumerated. Now it doesn't work fine. First time it creates the desired wks, but second time it add cols the first one without labels.

Please help.

Thanks

Dizyz ;o)
4   L A T E S T    R E P L I E S    (Newest First)
Dizzy Posted - 02/04/2005 : 05:11:55 AM
Hi Mike!

Thanks for your explanation. Now I see where I did mistakes in writing as well as in thinking. I thought create.enumerate enumerates the wks, but instead it enums the cols. This is due to the situation, that the manual is in chm-helpfile. Of course I wanted to enum the wks. I created a button to get a wks with desired options.
I will try your suggestions as I know you got know-how in programming.

Now I got the opportunity to use Version 7.0.

New install won't be that much of work to do - I will try it because I made a lot of tests and tried many options in Origin and at the beginning I may not have realized, that these changes have effect on the default templates.

Thanks a lot!!

Tom (Dizzy)
Mike Buess Posted - 02/03/2005 : 07:55:03 AM
quote:
Later I discovered a different behavior with automatic enumeration. What is wrong? Bugs in Origin?
I assumed that you wanted to enumerate the wks name. Instead, your script enumerated the column names which seemed irrelevant since you named the columns explicitly in create.wks(). Which did you really want to enumerate?
quote:
I think it is necessary to reinstall it and do not save changes into default templates.
I doubt if reinstall is necessary or even helpful. Also, it would seem that this particular task can be accomplished just as easily with a custom template as with your script. Just set up the template (apparently you're using a custom template named TEST.otw) the way you want (column types, names and labels) and replace your script with this...

for(i=1;i>0;i++) {%W=Result$(i); if(exist(%W)==0) break}; // find available name
win -t D TEST %W; // create and name wks
set %W -er 300; // set number of rows
win -ch 1; // hide

...I think I see what happened now. Normally the create command uses the Create template which is normally hidden. You substituted your TEST template which is why your worksheet was no longer hidden. I think that changing the second line of your script to

create.template$="Create";

will solve most of your problems. However, I still don't know what you wanted to enumerate.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 02/03/2005 08:19:10 AM

Edited by - Mike Buess on 02/03/2005 6:17:12 PM
Dizzy Posted - 02/03/2005 : 06:40:02 AM
Thanks Mike!
IŽll try it.
As you wrote it is not necessary to enumerate, I found it definitely was when I startet to create this script above. Later I discovered a different behavior with automatic enumeration. What is wrong? Bugs in Origin?
I think it is necessary to reinstall it and do not save changes into default templates.

Thanks!
Dizzy
Mike Buess Posted - 02/02/2005 : 10:49:54 AM
I think this fixes it. The final command hides the worksheet in Origin 7.5 but I'm not sure it will work in Origin 6.0.

create.wksName$="Result";
create.template$="TEST";
create.wkslabel$="Analysis numerical";
create.npts=300;
//create.enumerate=1; // enumerate column names (not necessary)
create.enumWks=1; // enumerate wks name
create.numtypes=2;
create.type1=4;
create.type2=1;
create.typeN=1;
create.wks(A B C D E F);
%W=create.wksName$; // wks name
%W!wks.col1.label$=Temp.;
%W!wks.col2.label$=Peak-Pos.;
%W!wks.col3.label$=Int.;
%W!wks.col4.label$=FWHM Gauss;
%W!wks.col5.label$=FWHM Lorentz;
%W!wks.labels(); // show labels
win -o %W {win -ch 1}; // hide wks
//if the last command does not hide the wks try next line instead
//win -o %W {win -h 1};

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 02/02/2005 11:01:52 AM

Edited by - Mike Buess on 02/02/2005 11:55:23 AM

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