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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 renaming windows takes a lot
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Jose

Netherlands
93 Posts

Posted - 08/30/2000 :  8:48:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
The renaming command "window -r %h %u", that I use to change the name of the current window to another given by %u, takes a lot to run in some of my projects (more than ten seconds, the program stops for a while), while in others it runs instantly. In both cases %h and %u are similar strings, this can not be the causal difference. I cannot guess with what it is interacting. Any tip?

jose.

Laurie

USA
404 Posts

Posted - 09/05/2000 :  8:46:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
My guess is that it is not just the window -r command, but it is also some other part of your script. How did you determine that it was this line that was taking so long?

Feel free to email me or to post your block of script for me to take a look.

Thanks.

-Laurie
OriginLab Tech Support

Go to Top of Page

Laurie

USA
404 Posts

Posted - 09/07/2000 :  2:34:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
To check if you have hidden datasets, open the Script Window and type 'list s'. This will return all the datasets in the project. Datasets that you see listed that are not affiliated with any of your worksheets, can most likely be deleted.

To delete them, first open their worksheet. To do this, type 'edit DatasetName'. You can then close the worksheet, deleting the datasets.

If this doesn't help, then I will have to think further.

Laurie

Go to Top of Page

Jose

Netherlands
93 Posts

Posted - 09/07/2000 :  8:00:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
> How did you determine that it was this line that was taking so long?

Well, it took so long even when I type that line alone... I isolated the problem on that line, I'm sure. I have more or less solved my problem with a curious method: I imagined that it had to do somehow with my project (as in other new projects it worked fast), so I re-made the project by saving every window, one by one, worksheets and graphs, and loading them again in a new fresh project, by this conserving my data but avoiding any other strange stuff that could be there after many hours of work over the old project. With this the problem disappeared, and that command run fastly again (and consequently all my scripts where I use it).

This is not the first time that I have to avoid a weird problem by using this method. It is slow, but sometimes is a good solution for the strange, unpredictable behavior of computers and software :-)

jose.

Go to Top of Page

cpyang

USA
1406 Posts

Posted - 09/07/2000 :  8:16:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
worksheet rename will need to scan all datasets in all worksheets and all stand alone datasets to make sure there is no duplicate names. There is no simple way to delete all stand alone datasets in 6.0 and earlier version, but the upcoming 6.1 has the command
del -as; // to del all unattached datasets
This command will not only check that a dataset is not in any worksheet, but also no included in any other ways, like as tick labels in any graphs.
Go to Top of Page

Laurie

USA
404 Posts

Posted - 09/07/2000 :  8:45:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Jose,

Great, happy to hear that you found a solution.

When you resaved your Origin windows to create the new project, did the windows keep their original names. In other words, I wonder it it had to do with the window names that you were using.

What strings were %H and %U set to?

Laurie

Go to Top of Page

Jose

Netherlands
93 Posts

Posted - 09/07/2000 :  8:48:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes, they conserved the original names. The typical place where I use this command is in the Plot.ogs script, that I have modified to change the default graph name, "Graph1", to another one related to my dataset, usually something like "rs1" (quite simple), automatically when I plot it.

What I did is not exactly a solution, because after some days of work with the repaired project it becomes slower again. It would be nice to know the reason, to avoid it or to directly attack it :-) Could be something related with increasing amount of temporary hidden datasets that occupy more and more memory? I don't know...

But this can give a clue: what really goes slowly is the renaming process itself, not only the command. It happens the same when I rename the windows with Windows/Rename, or if I move the window to a sub-folder...

jose.

[This message has been edited by Jose (edited 09-07-2000).]

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000