![]() |
![]() |
![]() |
||
![]() |
||||
Error HandlingYou can read an article I wrote (so far unpublished) about error handling in general and the use of these VIs.Combine Error
NOTE: This VI is part of IMAQ. It is included here for convenience. Combines multiple error cluster into a single error cluster. If any of the inputs have an error, then Error Out will reflect the first error. If none of the inputs have errors, error out will show no error.Get Win32 Error Message
Retrieve a WindowsNT/2k error message corresponding to a particular error number.Insert Coded Error
Wire "Reserved error code" with an error code output of a LabVIEW function such as the signal generation functions. Error inserted if code is non-zero only.Insert Reserved Error
Wire "Reserved error code" with an error ring constant to be inserted unless there's an upstream error or "error?" is false. Source string is built from the calling chain, starting with this vi's caller, unless the "non-standard source" input is wired.Insert Win32 API Error
Win32 API error code for this thread is retrieved and inserted unless there's an upstream error or "error?" is false. Source string is built from the calling chain, starting with the API function name and then this vi's caller.PROJECT Error Handler
This VI does nothing if no error, calls simple error handler on non-user-defined error, and generates error code list and calls the general error handler for user-defined errors. Modify the diagram to include error codes from all components of your project.PROJECT+WIN32 Error Handler
This VI does nothing if no error, handles Win32 API errors with dialogs, calls simple error handler on non-user-defined error, and generates error code list and calls the general error handler for user-defined errors. Modify the diagram to include error codes from all components of your project.Strip Error Code (none)
From LabVIEW Graphical Programming by Gary Johnson Clears the error condition if the incoming error matches Error Code to Remove. This version has no flow-through parameters.Suppress Error Code
Polymorphic. Clears the specific error(s) passed in, but leaves any other untouched.
|
||||
![]() |
||||