Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6525

error handling with .NET adapter

$
0
0

Is there a way to handle excepetions or errors when using .NET assemblies in TestStand?  For example, I use .NET Serial Port Class to Open a Com port such as pictured below.  If there is an exception, or error when opening the com port, how can I capture that in Teststand such as with Step.Result.Error, or with some other strategy that I can capture the error and examine it in Teststand, rather than popping up a modal exception window?

 

SerialPort3.JPG


Viewing all articles
Browse latest Browse all 6525

Trending Articles



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