<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://labviewwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=Error_Codes_Editor</id>
	<title>Error Codes Editor - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://labviewwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=Error_Codes_Editor"/>
	<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Error_Codes_Editor&amp;action=history"/>
	<updated>2026-05-08T08:12:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Error_Codes_Editor&amp;diff=31318&amp;oldid=prev</id>
		<title>Q: Created Error Codes Editor page</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Error_Codes_Editor&amp;diff=31318&amp;oldid=prev"/>
		<updated>2021-09-28T13:48:46Z</updated>

		<summary type="html">&lt;p&gt;Created Error Codes Editor page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[File:Error Code Editor.png|thumb|Error Code Editor]]&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Error Code File Editor&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;Tools-&amp;gt;Advanced-&amp;gt;Edit Error Codes&amp;#039;&amp;#039;&amp;#039;) provides a simple GUI for creating and editing a custom error XML files. These files are useful if the user requires custom error codes to apply to several applications, if the codes are used by several software engineers in a team, or if the codes are to be distributed with an application.  Once custom error code files have been created and/or altered, LabVIEW must be restarted for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
After creating the custom error XML file, place the file in the labview\user.lib\errors directory.  This will make the custom error codes show [[Error Ring]]s and when creating an instance of the error using the [[Error Cluster From Error Code function]].&lt;br /&gt;
&lt;br /&gt;
For example, the XML filename must be in the format &amp;#039;&amp;#039;&amp;#039;*-errors.txt&amp;#039;&amp;#039;&amp;#039; (where &amp;#039;&amp;#039;&amp;#039;*&amp;#039;&amp;#039;&amp;#039; is user definable), and the internal file structure must adhere to the following format:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;?XML Version=&amp;quot;1.0&amp;quot;&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;nidocument&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;nicomment&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
This is a custom error code definition file for my application.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/nicomment&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;nierror code=&amp;quot;5000&amp;quot;&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
User Access Denied!&amp;lt;br /&amp;gt;&lt;br /&gt;
Contact the Security Department to gain clearance to perform this function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/nierror&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;nierror code=&amp;quot;5001&amp;quot;&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
User Unknown.&amp;lt;br /&amp;gt;&lt;br /&gt;
Contact the People Development Department.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/nierror&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;nierror code=&amp;quot;5100&amp;quot;&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Driver Unable to Contact Instrument Database.&amp;lt;br /&amp;gt;&lt;br /&gt;
Contact the Software Engineering Department Helpdesk.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/nierror&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;nierror code=&amp;quot;5200&amp;quot;&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Plug-In Module in R&amp;amp;D mode – not to be used in Production Environment.&amp;lt;br /&amp;gt;&lt;br /&gt;
Contact the New Product Development Group.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/nierror&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/nidocument&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As can be seen, a file comment can be created within the &amp;lt;nicomment&amp;gt; tag space. Each custom error is defined as an &amp;lt;nierror&amp;gt; with it’s associated error code, and its error message is then placed inside the &amp;lt;nierror&amp;gt; tag space.&lt;br /&gt;
&lt;br /&gt;
[[Category:Error Handling]]&lt;/div&gt;</summary>
		<author><name>Q</name></author>
	</entry>
</feed>