The example is the main .cs file from a simple console c# .net project. All it does is attempt to open an invalid VISA resource, which will throw an exception. Returning the error message string is easy, but I'd like to get the VISA error code. See the comments in the code provided for the steps to see the VISA error.
↧