programmatically erase the history content

hello, 

I develop a tool to perform series of treatments on datasets, 

The user will receive an empty (only two procedure files) PXP file, and will load datasets and perform treatments. Some of the treatments will appear in the history of Igor.

I have set a tool to "reset" the experiment so that user can restart from scratch with a new dataset

However, I do not find a way to clean up the history content

Is there a way to do that ?

 

thanks

Roland

There is no way from an Igor procedure to delete the history. You can limit the history using the Limit Command History Text feature in the Command Window section of the Miscellaneous Settings dialog (Misc menu).

>I have set a tool to "reset" the experiment so that user can restart from scratch with a new dataset

A good way to do this is to use a template experiment. Execute this for details:

DisplayHelpTopic "Saving an Experiment as a Template"

You could have a procedure in your template experiment that reloads the template experiment. You would use Execute/P with the LOADFILE keyword to do this. Execute this for details:

DisplayHelpTopic "Operation Queue"

Although it is more than you need, for an example of loading an experiment from a procedure, choose File->Example Experiments->Programming->Multi-Experiment Process.