ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView, ActiveX, and Arrays

I'm experimenting around with using ActiveX controls in LabVIEW. I've
written a method in C++ that accepts an array as one of the parameters;
however, when I try to wire an array to that parameter in LabView, it
comes up as a bad wire.

Here is the .odl code:

[id(5), helpstring("method SetConfiguredIDs")] HRESULT
SetConfiguredIDs([in, size_is(ArraySize)] int* ID_Array, [in] int
ArraySize);

The prototype for the method is:

SetConfiguredIDs(int *ID_Array, int ArraySize)

I can wire an I32 control to the ID_Array parameter, but when I try to
wire an array of I32s, the wire is bad.

How do I specify that the input is an array?

Scott
0 Kudos
Message 1 of 1
(2,696 Views)