
Best strategy to make sure User runs procedure in a New/Clean experiment?

sjr51
I'm thinking of ways to insert a checking function to see if the experiment is new (or clean). My best idea so far is to count data folders in root: and waves in root: and to abort if either value is > 0. Does anyone else have any other ideas? I figured others may have come across this situation. Any advice/tips appreciated.
April 18, 2017 at 05:16 am - Permalink
April 18, 2017 at 05:27 am - Permalink
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAH
April 18, 2017 at 09:30 am - Permalink
You can directly disregard the heuristic checks, whether an experiment is "clean" or not, by loading a blank experiment template upon your chosen condition like so:
Where,
:relative_path:ondisk:blank_exp.pxt
(if on windows),will be in (for example):
c:\program files\wavemetrics\igor pro folder\relative_path\ondisk\blank_exp.pxt
Depending on your use-case issuing
execute/p/q "NEWEXPERIMENT "
maybe enough.For more info:
displayhelptopic "Operation Queue"
best,
_sk
April 18, 2017 at 10:18 pm - Permalink
April 18, 2017 at 11:02 pm - Permalink