LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Force .net exceptions to the LabVIEW error cluster

OK - I'm not a .net person, but I've been posed a question: can someone programming a .net component put data on the error cluster?  I've got a client who have in-house c# developers and the LabVIEW guys are wrapping their .net components - they're currently spewing errors out and then putting them on the error cluster in the LabVIEW wrappers.  I was wondering if they could be put there in the c# code and then the LabVIEW guys could create a custom error code file so it's all seemless.  Seems kinda pointless to me...
 
(cross-posted to LAVA Forums)




Copyright © 2004-2024 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 4.0 License.
0 Kudos
Message 1 of 2
(2,901 Views)
Exception handling in the .NET interface in LabVIEW is one of my biggest complaints regarding the way LabVIEW deals with .NET. I would suggest having the .NET component creators throw custom exception objects. The LabVIEW .NET interface will simply convert a .NET exception into an error cluster, though you'll need to look at the error cluster's "source" string to get the information. I've tried this before, and it's clumsy. Brian Tyler suggests a "Last Error" property, if possible, in this thread.
0 Kudos
Message 2 of 2
(2,884 Views)