Handling Errors in Operator Interfaces (TSM)
- Updated2025-04-10
- 2 minute(s) read
You can configure TSM operator interfaces to write a message to an error log file when any run-time error is raised and execute the behavior you specify in the SemiconductorModuleManager when a code module run-time error is raised.
To specify how TSM treats run-time errors in TSM Operator interfaces, complete the following steps:
- Select to launch the Station Options dialog box.
- Select Show Dialog Box from the On Run-Time Error drop-down menu.
- Click OK.
- Optional. Use the following TSM Application API property and event to customize error handling for the operator interface:
- ErrorLogFilePath—Specifies the location of the error log file. The default setting for this property is <TestStand Public>\ErrorLogs\NI_SemiconductorModule\OperatorInterfaceErrors.log
- ErrorOccurred event—Generated when any error occurs.
Code module run-time errors are a class of run-time errors. A code module run-time error is raised when the MainSequence sequence returns a run-time error from a source other than TSM, such as a code module or an instrument driver.
To specify how TSM treats code module run-time errors in TSM Operator interfaces, set the following TSM Application API properties on the SemiconductorModuleManager object in the operator interface source code:
- EndLotOnCodeModuleRuntimeError—Determines whether testing ends immediately after the MainSequence sequence returns a code module run-time error. The default setting for this property is False.
- DisplayDialogOnCodeModuleRuntimeError—Determines whether the operator interface displays the run-time error dialog box when the MainSequence sequence returns a code module run-time error. The default setting for this property is False.