Graphical Error Handling Structure for Program Execution
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing graphical programming systems lack efficient error handling mechanisms, requiring users to either abort the entire program or manually include error checking code, which is cumbersome and inefficient.
Innovation Solution
A graphical error handling structure is introduced, allowing users to specify error handling for portions of a graphical program within a frame, enabling automatic abort and recovery of execution in case of unhandled errors, without requiring explicit error checking throughout the code.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the entire program is aborted when an error occurs, then error handling is simple, but program execution efficiency deteriorates because the entire program stops
Solution Approach 1:
The patent divides the graphical program into separate error handling scopes using frames. Each frame can independently handle errors within its boundary, allowing the program to abort only the affected frame's execution while continuing other frames. This segmentation resolves the contradiction by enabling localized error handling that maintains overall program efficiency while providing reliable error management.
2Reliability
If error checking code is explicitly included throughout the graphical program, then error handling completeness is improved, but device complexity increases
Solution Approach 1:
The patent introduces a universal error handling structure (frame) that can be applied to any portion of a graphical program. This frame-based approach provides comprehensive error handling capabilities uniformly across different program sections without requiring separate error checking code for each component. The frame serves multiple functions: error detection, error containment, and controlled abort, thereby reducing overall program complexity while maintaining complete error handling.
3Reliability
If error checking code is manually included in each piece of code, then error detection capability is improved, but ease of operation deteriorates
Solution Approach 1:
The patent enables graphical programs to automatically handle errors through the frame structure without requiring manual error checking code insertion. The frame-based error handling mechanism automatically detects and manages errors within its scope, allowing developers to focus on program logic while the system self-manages error detection and response. This significantly improves ease of operation while maintaining robust error detection capabilities.
Data Source
AI summary
System and method for error handling in a graphical program. An error handling structure is displayed in a graphical program. The error handling structure includes a first frame configured to contain graphical program code for which error handling is to be provided. At least a portion of the graphical program is included in the first frame in response to user input specifying the at least a portion of the graphical program. During execution of the graphical program, the error handling structure aborts execution of the at least a portion of the graphical program in the first frame in response to detection of an unhandled error in the at least a portion of the graphical program in the first frame and continues execution of the graphical program.


