From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,280 Views)