Overview
This example converts a single error to a string or an array of errors while only writing errors that have occurred
Description
I have always been dissatisfied with the 'Merge Errors.vi' that is packaged with LabVIEW because while creating a valid error cluster from an array of errors it doesn't show all the errors that occurred, just the first error it comes across in the array of error clusters you send it. Sometimes there are situations where you need to convert an error to a string or an array of errors to a string. For instance, recording a few different error lines to a file or sending errors over shared variable. So I made this little VI and it can convert a single error to a string (like the 'simple error handler.vi') or an array of errors while only writing errors that have occurred and writing nothing for status OK on all errors. You can wire an error, an array of errors, or both.
Requirements
LabVIEW Full Development System 2012 or compatible
Steps to Implement or Execute Code
- Modifying the Status and Code on the Error In or Error Array Clusters
- Run the VI
- Notice that the errors are concatenated in the Errors Strings and the Error status turns ON if any error occurs
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange. **