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 for Programming
 LabTalk Forum
 Another problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

hborck1

USA
1 Posts

Posted - 10/23/2001 :  10:08:18 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Well, so the script that makes the 800+ graphs works. When I ran it the first time however, I immediately realized the importance to add the

win -h 1;

when finished with each graph, else I have 800 open windows to manually hide. However, while this works in the script fine apparently, when I reopen the project, the windows previously hidden (the 800 graphs) are open and crash the program every time. What gives? Is there a better way to hide/store the graphs immediately?

the section of code in question is as follows:

for every graph created i do:

//******************************
label -n YL Reflectivity;
label -n XB ABS;
label -r legend;
label -s -d 1200 150 %J;
label -s -d 1200 220 %K;
label -s -d 1200 290 %A;
win -r %H %A%[%H,>6];
win -h 1;
//************************

before moving on to the next graph.

-----------------hborck

hborck

USA
20 Posts

Posted - 10/23/2001 :  10:10:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
BTW, it is also bizarre that I have two logons here, hborck1 I guess for the origin website (and forums), and hborck for just the forums. Weird.

************EDIT***************
I can fix it with the view options in origin without crashing the program, but I still am perplexed as to why the graphs did not stay hidden.
************END EDIT***********

************EDIT 2*************
OK, I turned the view off for all windows, moved the graphs to a seperate folder. When I open that folder, all 800+ graphs come up and crash the program. I cannot appear to avoid that...
************END EDIT 2***********

************EDIT 3***************
OK, last edit here, if I turn off view, break the graphs up into 3 or 4 seperate folders, and then turn back on the view option, I can load about 200 grpahs at once without crashing origin. Still, there must be a better way...
*************END EDIT 3***************

--------------hborck (the real one)

Edited by - hborck on 10/23/2001 10:22:52

Edited by - hborck on 10/23/2001 10:26:51

Edited by - hborck on 10/23/2001 10:33:32
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 10/23/2001 :  11:05:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I am also puzzled as to why windows that are hidden when you save a project become unhidden when you reopen it. Especially when there is an option to open minimized windows from previous Origin versions as hidden.

I have just one suggestion that may or may not help. Try minimizing your hidden windows before you save the project. You can use whichever of the following commands is appropriate...
doc -e P {win -i}; // minimizes all plot windows
doc -e W {win -i}; // minimizes all wks windows
doc -e O {win -i}; // minimizes all non-minimized windows


Maybe the minimized windows won't create as much havoc when you reopen the project. If you can open the project without crashing Origin you can then restore the windows to their former state. E.g.,
doc -e P {win -h 1}; // hide all plot windows


Let us know if that works.

Mike Buess
Origin WebRing Member
Go to Top of Page

CStorey

Canada
137 Posts

Posted - 10/23/2001 :  11:14:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Guys,

This is a problem I've experienced too. There was a little note in the Kbase about this but the Kbase seems to be under construction right now. If I remember correctly script control of project explorer function like "hide" was limitted and you were forced to do it manually before the window was truely hidden. The same goes for worksheets which was the problem I had. My solution was to minimize everything twice. Once after creation and again before closing using the command Mike suggested -

doc -e P {win -h 1};

This should solve the problem, at least for 1/10 as many graphs.




Craig Storey
Origin WebRing Member - http://nav.webring.yahoo.com/hub?ring=originwebring
Go to Top of Page

hborck

USA
20 Posts

Posted - 10/24/2001 :  10:45:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I tried the doc -e suggestion by appending it to the same script after the loop. i.e.,

} //end of loop

doc -e P {win -h 1};

but this did not work either. I reopened the project to have origin crash under the weight of 800 opening windows. I will try running it in a seperate script post-plot creation tomorrow.

Cheers and thanks,
hborck
Go to Top of Page

hborck

USA
20 Posts

Posted - 10/25/2001 :  11:06:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
hrmmm...

ok ran the

doc -e P {win -h 1};

after graph creation, but the view section still lists them as normal rather than hidden. Naturally, when I save and exit, then reopen the project all 800 graphs reappear.

Any other ideas?

-------------------------hborck
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 10/25/2001 :  1:14:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I still think you should try minimizing them all before saving.

Mike Buess
Origin WebRing Member
Go to Top of Page

hborck

USA
20 Posts

Posted - 10/26/2001 :  3:40:17 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Things have gone from bad to worse. I cannot open the project at all. When it loads the 800 graphs, Origin perfroms one of those lovely "illegal operations" and crashes. I think I may have to run the script in sections so as to not hose the projects...
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 10/26/2001 :  4:00:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes, 800 graphs in one project might be overly ambitious. Please keep us posted on your progress.

Mike Buess
Origin WebRing Member
Go to Top of Page

greg

USA
1379 Posts

Posted - 02/05/2002 :  1:02:07 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Guys, guys, guys, ...

I hate to pull an RTFM on you - especially, when two of our most advanced LabTalk users are involved - but the documentation suggests an alternative which might be useful:

win -ch 1;


This option changes the Project Explorer state to Hidden. The upshot is that the "-h" option has a temporary effect: it's lost when you open a project or even when you drag and drop these windows to another folder. The "-ch" option won't change in those circumstances.


Since all my computers are Win9x, I get nervous with even 200 windows of any kind. Win9X is simply very bad when it comes to handling lots of resources, and each visible window becomes a new resource Windows has to juggle. I know if I push this, I'll start seeing things like:


  • Dialogs with no text
  • Fonts that refuse to display
  • Text entry that is actually accepted by an application, but which doesn't display
  • etc.

And this isn't just Origin, all applications start to get squirrelly when free resources dry up. WinNT-based systems (NT, 2K and XP) are much better at resource handling, but I suspect that even they can become over-burdened and a little flaky at times.

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