Origin 8.0.63.988 SR6 v8.0988 Operating System: Windows
I wrote a loop-based program that runs the pkFind function on several data columns contained in several data sheets. If the function pkfind cannot find any peaks, it stops and shows an error message asking me to change my parameters. But I would like it not to stop and to move on to the next sheet.
You could use a pair of curly braces ("{" and "}") to enclose a part of the script that might generate an error. Then Origin will encounter the error and resume with the rest part of the script, which is outside the braces.
The following page has given a example to show you how to do this.
Use the -sb option switch within your pkfind-command. This will prevent the X-Function to report errors and results to the results log.
Look inside of the LabTalk-Help for chapter 'X-Function Execution Options'. There you will find a complete list of option switches for all X-Functions.