Igor opens every graph at startup (all, not just the graph macros), how to fix that

Hy There

I'm having problems with my igor file. at startup it opens every window I've ever created. not just the macros. how can i stop this? it's really annoying ;-)
thanks for help
I don't really understand what you are saying. Igor does not open "macros" when you open an experiment file. It recreates windows that were open at the time you saved the experiment.

It also executes any commands in the main procedure window that appear before the first function or macro definition. Choose Windows->Procedure Windows->Procedure Window and see if there is text at the start of the file that should not be there.
Is it opening graphs that you minimized? That's expected. If you un-minimize a graph and click the close box, you can save a recreation macro. The macro will allow you to reproduce the graph in the future if you want to, but it is not open and will not be opened when you open the experiment file.

The way you say, "every window I've ever created" suggests that you are using just one experiment file every time you run Igor. You might try keeping more than one file as you work.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
Thanks for reply

I know, it shouldn't open these windows. I've made multiple macros and of course some waves withou names and without generating a macro.
EVEN IF I CLOSE every window, it is opening again at startup.

in my procedure-file (just an example):
#pragma rtGlobals=3     // Use modern global access method and strict wave access.
#include <Function Grapher>

Tagesverlaeufe()

Heizkurve_FW_Dorf()

Gesamtuebersicht_FreitagSamstag()

FWL_Dorf_Uebersicht_vortrag()

WRG_Uebersicht()

Kunstharz_Uebersicht()

FWL_2_Uebersicht()

FWL_Dorf_Uebersicht()

Heizkurve()

Gesamtuebersicht_Mittwoch()

Gesamtuebersicht()

Gesamtuebersicht_unt_vortrag()

Gaskessel_KW_MWhth_vortrag()

Gaskessel_KW_MWhthermisch()

Gaskessel_Uebersicht()

Verbraucher_Dorf_Heizkurve_Tag()

Verbraucher_Dorf_Heizkurve()

Erzeugerkurve()

Gesamtuebersicht_unterteilt()

Erzeugerkurve_gaskessel()

Winterwoche_Typisch()



Window Winterwoche_Typisch() : Graph
PauseUpdate; Silent 1       // building window...
String fldrSav0= GetDataFolder(1)
SetDataFolder root:Speicherauslegung:'Wochenwerte Winter':
Display /W=(0,44,1644,1049)/L=a_y/B=a_x Winterdurchschnitt_Verbrauch
AppendToGraph/L=b_y/B=a_x Aussentemp
AppendToGraph/L=c_y/B=a_x :Integration:Woche_Winter_zumIntegrieren_INT
SetDataFolder fldrSav0
ModifyGraph gfSize=12,gmSize=24
ModifyGraph mode(Winterdurchschnitt_Verbrauch)=7
ModifyGraph lSize=1.5
ModifyGraph rgb(Winterdurchschnitt_Verbrauch)=(26112,0,20736),rgb(Aussentemp)=(1,3,39321)
ModifyGraph rgb(Woche_Winter_zumIntegrieren_INT)=(52224,0,0)
ModifyGraph hbFill(Winterdurchschnitt_Verbrauch)=5,hbFill(Aussentemp)=5
ModifyGraph grid(a_y)=2,grid(a_x)=2,grid(b_y)=2
ModifyGraph zero(b_y)=1
ModifyGraph nticks(a_y)=10,nticks(b_y)=10
ModifyGraph minor(a_y)=1
ModifyGraph lblMargin(c_y)=722
ModifyGraph gridRGB(a_y)=(13056,13056,13056),gridRGB(a_x)=(0,0,0),gridRGB(b_y)=(13056,13056,13056)
ModifyGraph gridRGB(c_y)=(13056,13056,13056)
ModifyGraph axRGB(b_y)=(1,3,39321)
ModifyGraph tlblRGB(b_y)=(1,3,39321)
ModifyGraph alblRGB(b_y)=(1,3,39321)
ModifyGraph gridStyle(a_x)=1
ModifyGraph lblPosMode(a_x)=1,lblPosMode(c_y)=1
ModifyGraph lblPos(a_y)=67,lblPos(b_y)=-25
ModifyGraph lblLatPos(a_y)=-10,lblLatPos(c_y)=-40
ModifyGraph axisOnTop(b_y)=1,axisOnTop(c_y)=1
ModifyGraph freePos(a_y)=0
ModifyGraph freePos(a_x)=0
ModifyGraph freePos(b_y)=-53
ModifyGraph freePos(c_y)=-601
ModifyGraph manTick(a_x)={0,12,0,0,hr},manMinor(a_x)={5,0}
ModifyGraph dateInfo(a_x)={0,1,-1},dateFormat(a_x)={German,1,2,1,1,"DayOfWeek, DayOfMonth. Month ",-29}
Label a_y "\\Z20Thermische Leistung [kW\\Bth\\M\\Z20]"
Label a_x "Kalte Winterwoche"
Label b_y "\\Z18Aussentemperatur"
Label c_y "\\Z20Thermische Wärmeenergie [kWh\\Bth\\M\\Z20]"
ShowInfo
Legend/C/N=text0/J/F=0/A=MC/X=-23.98/Y=39.91 "\\Z20\\s(Winterdurchschnitt_Verbrauch) Thermische Leistung [kW\\Bth\\M\\Z20]\r\\s(Aussentemp) Aussentemperatur"
AppendText "\\s(Woche_Winter_zumIntegrieren_INT) Thermische Wärmeenergie [kWh\\Bth\\M\\Z20]"
ShowTools
EndMacro


So the problem is for example: it opens the graph Heizkurve_1() Heizkurve_2() Heizkurve_3() and so on. (even though there is just one macro "heizkurve")
so every graph i've ever created....

during opening the experiment it runs the macro "experiment recreation". could this cause this properties?

thanks
and i'll create multiple files for my experience, thanks for the advice
At start up, Igor runs all top-level function calls in the procedure window for the experiment. In your case, it runs 21 function calls. I would guess that this causes you to have the result that every graph you have ever created appears at start up.

What happens when you keep only those function calls that you absolutely want to run at startup?

You can always find a graph window macro from the Window menu list when you want to display it.

--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
No i don't think the 21 calls make this happen. cause i already tried to delete those calls and it is still opening ev. graph on startup..
thanks for reply
The copy of your main Procedure window that you show above has a series of function calls at the top. One of Igor's little-known features is that if you have commands that appear before any macro or function body in the main procedure window, they will be executed when you open the experiment file. You can read about it; copy this command, paste it into Igor's command line and press Enter:

DisplayHelpTopic "Experiment Initialization Commands"

Can you tell us why you have those calls at the top of the main procedure window?

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
Moodhound wrote:
No i don't think the 21 calls make this happen. cause i already tried to delete those calls and it is still opening ev. graph on startup.


Have you closed (killed) those windows and then saved the experiment?

--Jim Prouty
Software Engineer, WaveMetrics, Inc.
Thanks for your replies.... now that i've closed ev. windows and killed the graphs in the procedure-file it works!
perfect. thanks
solved