Example Code

Catch and Clean an error when you have to clean and create new references

Code and Documents

Attachment

 Overview:

VI demonstrates how to clear an specific error while working with files

 

Description:

This VI creates a file and then, has the functionality of generating an error and erase it using the clear errors VI and specifying the error to ignore.

 

Requirements:

LabVIEW 2012 (or compatible).


Steps to Implement or Execute Code:
*Specify the file name and extension
*Run the VI
*Press the write button and stop the VI
*Check in the File if the data is written.
*Run the VI again and press the Generate Error button
*Press the Write Button, the VI should still be running
*Change the Error To Clear value to any other value except 0
*Press again the Generate Error and Write buttons
*The VI Stops Automatically because it finds an error
different from the one it is searching for

 

Additional Information or References:

 Catch Error-LV2012 NI Verified.png

“**This document has been updated to meet the current required format for the NI Code Exchange.**”

Francisco Arellano

National Instruments Mexico
Field Systems Engineer - Energy Segment
www.ni.com/soporte

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.