LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visual Studio GetControlValue() with CLR (Common Language Runtime)

Hello, I need to use C to get data from a VI (a cluster with numeric, boolean, table information that need to be passed to the instrument). Everything worked perfectly, I could read the cluster, transfom it into a safearray and read it's contents, until i've turned on CLR support (and I need it to call the driver library). After that things went bad.

 

Without CLR after I run GetControlValue() to _variant_t variable, it contains tagVARIANT property with a saefarray inside,

WithoutCLR.PNG

but with CLR it contains much much more stuff, though not the safearray WithCLR.PNG

When I convert it to safearray as I did before I still get right sizes of tables inside, but all the values from them are read as zeroes, and so do the numeric values from the cluster. I understand that chances are not high, but has anyone ever had this problem and/or knows a solution for it?

0 Kudos
Message 1 of 1
(2,028 Views)