I am running a function which calls FuncFit from a Igor Batch File over and over. At times the data causes a singular matrix error and a popup. When this happens Igor seems to stop running the Igor Batch File which means no data is getting processed. When I click the Ok button for the error Igor starts working agian.
I would like to prevent these pop-ups since the Singular matrix errors are a low concern for me. Is there a way to do this, or some other work around to keep Igor running.
I suggest you look at GetRTError() under the 'Command Help' tab. Assuming that singular matrices generate run-time errors this should work. See the code example given in the Help listing.
p.s. See also the Exchange node 662 for John Weeks' response.
The problem wasn't catching the error, I knew when the fit was bad already, it was that the pop-up alerting me of the error stopped Igor from checking the IgorBatchFile for new commands to run.
Setting the variable V_fitOptions=4 seemed to solve my problem. It appears that this variable prevents the pop-ups.
p.s. See also the Exchange node 662 for John Weeks' response.
February 20, 2013 at 07:12 am - Permalink
DisplayHelpTopic "Special Variables for Curve Fitting"
and then scroll down to the description of V_FitError and V_FitQuitReason.Example:
FuncFit blah blah
if (V_FitError != 0)
continue // fit failed, move on to the next one
endif
February 20, 2013 at 07:12 am - Permalink
Setting the variable V_fitOptions=4 seemed to solve my problem. It appears that this variable prevents the pop-ups.
Thanks everyone
February 21, 2013 at 05:15 am - Permalink