LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET TargetInvocationException when function is called in LabVIEW

Hello everyone,

 

i´m fairly new to LabVIEW and c# Development in general, however I have been given the task to help design a program to control a testbench. For certain functionality i rely on functionailty provided in a c/c++ dlls. I have been given an .net (.net Framework 4.7.2) wrapper to implent these functions in my test bench HMI. 

 

It has been working fine so far however, I have now encountered an roadblock and am not sure what to do. There is one function that gets measurement data in form of a struct. When calling this function I get an TargetInvocationException in LabVIEW (LabVIEW 2019 32-bit). When calling the function in a seperate .Net Program, the function works as expected. I´m not sure, where the issue is and hope you can provide me with some help.

 

Thank you in advance!

Download All
0 Kudos
Message 1 of 1
(86 Views)