Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69058

Pass 2D array from LabVIEW to C# problem

$
0
0
Hi , I have made a dll using .net assembly to use my labview code in c# . I can easily pass string , numerical and 1D arrays from labview to c# and vice versa, but when I want to read back 2D U16 array from Labview in c# I get the following exception although they have exactly the same type (ushort)

Cannot widen from source type to target type either because the source type is a not a primitive type or the conversion cannot be accomplished.

Could you please let me know how should I pass 2d array from labview to c#
Thanks

Viewing all articles
Browse latest Browse all 69058

Trending Articles



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