Killing waves being in use
| ChrLie | April 14, 2010 - 01:14 | ||
|---|---|---|---|
|
I'm not sure if this came up before. It would be great to have a flag and a corresponding option for the delete button in the data browser for Regards |
|||
| ChrLie | April 14, 2010 - 01:14 | ||
|---|---|---|---|
|
I'm not sure if this came up before. It would be great to have a flag and a corresponding option for the delete button in the data browser for Regards |
|||
Joined: 2008-02-22
Location: United States
In the graph browser (Misc / Graph Browser), you can enter the name of a wave, with wild cards, and find a list of graphs/tables which use that wave. Then you can kill those graphs/tables, and then kill the wave. It is also possible to write a function which looks through all graphs/tables to find which ones use your wave, removes that wave from the graphs and tables, and then kills the wave. It would look something like this, although I haven't tested it:
There is no way to kill the wave without killing the graph/table that uses it.
Joined: 2009-01-06
Location: Switzerland
thanks for your reply and the code - something like that would work with a few adjustments and one would need to take into account dimension labels and x-values being displayed in a table.
Still, a flag which does it would be nice to have.
Cheers
Christian
Joined: 2012-04-30
Location: Canada
I modified the above code, this is what I came up with:
Joined: 2007-07-19
Location: United States
Take a look at:
from Igor's Windows->Help Windows->WM Procedures Index help file.
These routines are a little more robust than your code.
Also, version 6.1 of the procedure actually does work in multiple data folders as long as the right flags bit is set in KillMatchingWaves(matchStr, flags).
--Jim Prouty
Software Engineer, WaveMetrics, Inc.