Retrieving Error Information
- Updated2025-12-08
- 1 minute(s) read
LabVIEW
Make sure that you have wired the Error In and Error Out parameters for each VI in your application, so the VI (unless it is a Close, Abort, or Reset VI) does not execute if there is an error. The Error Description parameter displays messages for any errors encountered when running the application.
LabVIEW Example—Retrieving Error Information

Other ADEs
The Error Handler function translates error codes into explanations to help you debug your application.
C Example—Retrieving Error Information
// The handleErr macro checks the return value of a // function and jumps to the Error: label Error: // Free all the allocated memory if (wfmInfoPtr) free (wfmInfoPtr); if (waveformPtr) free (waveformPtr); // Display messages if (error != VI_SUCCESS) niScope_errorHandler (vi, error, errorSource, errorMessage); // Interpret the error else strcpy(errorMessage, "Acquisition successful!"); // The handleErr macro checks the return value