11-11-2021 10:25 PM
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.
Solved! Go to Solution.
11-12-2021 09:27 AM
I have found that Keysight documentation and examples are much better for COM-Visa and .NET Visa.
See the exceptionHandler method in the attached keysight c# visa example