LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

variant

I need help understanding how to extract data from a variant of an activex.
 
VARIANT my_data_1[1];
 
error_code = DATAQSDKLib__DDataqSdkGetData (dataq_handle, errorInfo, my_data_1);
 
type = CA_VariantGetType (&my_data_1[0]); 
// returns 4198.
 
What does 4198 mean?
 
Thanks
Jeff

0 Kudos
Message 1 of 2
(3,179 Views)

As you can see in the online help, CA_VariantGetType returns an enumerated type (defined in cviauto.h and starting from 100) OR'ed with either CAVT_ARRAY (defined as 0x1000) and/or CAVT_BYREF (0x2000), whichever applies to.

That is, your variant should contain an array of short integers (102 OR 0x1000).



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(3,172 Views)