LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create an ActiveX IDL to pass an array of references into Labview

It appears that LV is designed to be able to receive a COM variant that contains an array of references but I cannot understand what the appropriate IDL should be on the COM side of things. I am current trying to use a safearray to hold the references but the automation reference in LV returns a variant that is empty (VT_EMPTY). I have had success with COM interfaces that expose single references, scalers and arrays of scalers and I am able to get the data properly in LV.
0 Kudos
Message 1 of 4
(3,299 Views)
Have you tried using a regular array rather than using a safearray? This might be causing you added complication.
0 Kudos
Message 2 of 4
(3,297 Views)

Did you ever resolve this?  I am trying the same thing.  here is my IDL

 

HRESULT GetJumboRollInformation( [in] long lRollsRequested,
          [out,size_is( lRollsRequested ),length_is( *plNumberOfRollsReturned )] IMIGRollInformation **pIMIGRollInformation,
          [out] long *plNumberOfRollsReturned );

 

Labview shows just a single interface pointer not an array.

0 Kudos
Message 3 of 4
(3,076 Views)

Hi,

It looks like this is a duplicate post.  The other thread is here, and looks to contain a bit more information.  A response should be posted to this thread soon.

Thanks.

Jason W.

Message Edited by jason_w on 10-18-2007 04:46 PM

National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(3,048 Views)