Median XY Smoothing - how to keep median XY smoothing panel open even after "do it" is pressed

I am a new user of Igor. I was trying to use the package "Median XY Smoothing panel" on sets of graphs. But the problem is after I click "Do it" on the Median XY panel, the panel vanishes and to apply it on a another graph, I have to click again ->Package->Median XY Smoothing panel" to bring it back and again have to set the parameters values for that graph. Is there any way to keep the current Median XY panel still remain on the screen even after I click "do it".
I have located the respective procedure file (Median XY Smoothing Dialog.ipf), can anybody tell me how to to modify the ipf file to have this feature .
Also it would be great is anyone can tell me how to set the default value of the following paremers in the ipf file so that everytime Median XY package is clicked it will open with the following default value " From Target"= yes (Tick) ..Compute Median ...X range =10, Thershold=30
display output wave = YES (tick) ..
Wow. You're persistent- someone went to some trouble to hide that procedure file!

First, there are a couple of tricks that will make your life easier. On the command line:
Variable V_allowProcEdits=1
SetIgorOption IndependentModuleDev=1

The first one creates a special global variable. When set, it will tell Igor to use the crossed-out pencil icon on WaveMetrics procedures when they are loaded. That way, you can click the pencil and then you can edit the file.

The second one makes independent modules visible in the Procedure Windows menu, and allows you to edit them. If the procedure file is already loaded, you may need to click the Close button and select Kill. That will close the window (it won't kill the file). Then when procedures are next compiled, the file will be re-loaded with the pencil icon instead of the lock.

Once you've done that, you will be allowed to put the control panel into draw mode (Panel->Show Tools). Then right-click on the Do It button and select the action procedure function. That will show you the function you have to modify.

The line that causes the panel to be closed is this:
            Execute/P/Q/Z "DoWindow/K "+ksPanelName

Having told you all this, I have to issue the obligatory warning: if you modify a WaveMetrics procedure, you should save it somewhere other than in the original Igor Pro Folder:WaveMetrics Procedures folder. Give it a new name, and use one of the alternate methods for loading the file. If you leave it in WaveMetrics Procedures, you risk losing your changes during an update.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
supra wrote:
I am a new user of Igor. I was trying to use the package "Median XY Smoothing panel" on sets of graphs. But the problem is after I click "Do it" on the Median XY panel, the panel vanishes and to apply it on a another graph, I have to click again ->Package->Median XY Smoothing panel" to bring it back and again.
You don't need to go back through the Packages submenu. Once you select the panel through the Packages submenu, the "Median XY Smoothing" menu item is added to the bottom the Analysis menu.

supra wrote:

Also it would be great is anyone can tell me how to set the default value of the following parameters in the ipf file so that everytime Median XY package is clicked it will open with the following default value " From Target"= yes (Tick) ..Compute Median ...X range =10, Threshold=30
display output wave = YES (tick) ..

When you select the panel again those values aren't reset, so you should need to set them only once per experiment.

--Jim Prouty
Software Engineer, WaveMetrics, Inc.
johnweeks wrote:

First, there are a couple of tricks that will make your life easier. On the command line:
Variable V_allowProcEdits=1



This is a bad idea. It allows you to modify a WaveMetrics procedure file. Your modifications may be overwritten when you update Igor. That's one reason why WaveMetrics procedure files are opened for read-only.

Another reason is that it would be chaotic if users had their own modified WaveMetrics Procedures. Everyone should be able to rely on the fact that all users are using the same WaveMetrics procedures.

Instead, copy the WaveMetrics procedure file to your Igor User Procedures folder first. Rename the file to avoid confusion. Then modify the new file which is now your file.

If you think your changes are generally useful then send your file to WaveMetrics with an explanation of your changes and suggest that the changes be incorporated into the original WaveMetrics procedure file. But keep in mind that we have to worry about backward compatibility and avoiding introducing new bugs.