To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example demonstrates how to print all error codes and messages with DIAdem Script.
Description
DIAdem uses native VBscript error functionality. Errors in VBscript are represented by the Err Object. The Err object can have a number between 0 and 65535 (2^16-1). Some of these error numbers are already reserved and used by DIAdem to display specific errors and error messages. The attached script enumerates all the errors and, if they are unique errors then they will be logged. You can use the information this script produces to handle specific errors in your code, or to define custom errors outside of the range of the predefined errors.
After opening and running the script in DIAdem, you will see the list of errors appear in the Logfile view beneath the VBscript.
To find out more about the Err Object in VBScript, click here
Requirements
Steps to Implement or Execute Code
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.