Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5566

Retreiving VISA error code in Visual Studio C#

$
0
0

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.


Viewing all articles
Browse latest Browse all 5566

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>