Is it possible to create my own error handler with the OptSearch_1D search? I want to be able to restart a search automatically if I don't find a feature. Right now it stops and I don't get an error message to use in a handler. Normally I use something like this but it never gets to the error handler when using OptSearch_1D.
IF ERRNO=ERR_WHLSEARCH THEN
TPWrite "Measurement number " + ValToStr(nMeasCount) + " Missed.";
bMissed := TRUE;