LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Values in an Array of Clusters via COM

Hello everybody,

I need some help concerning LabView and COM (ActiveX).
I'm working on NT 4.0 with LabView 5.1 and I've written a COM-Client in Visual
C++ 6.0 which controls LabView.
I can set the values of normal Controls, Arrays and Clusters.
But I'm not able to set values for an array of clusters.
Does anybody know how to do this ?
Or is it impossible ?

Many thanks in advance,
Ralf Erdmann
0 Kudos
Message 1 of 3
(2,489 Views)
> I need some help concerning LabView and COM (ActiveX).
> I'm working on NT 4.0 with LabView 5.1 and I've written a COM-Client in Visual
> C++ 6.0 which controls LabView.
> I can set the values of normal Controls, Arrays and Clusters.
> But I'm not able to set values for an array of clusters.
> Does anybody know how to do this ?
> Or is it impossible ?
>

With no more information, the my answer is, I'm not sure. It is generally
possible to set controls by constructing a matching Variant. Make the
array a safe-array, the cluster a safe-array, and the elements of the
cluster be variants of compatible types to what is in the array.

If you can't get it to work from this, you may want to include the
LV datatype in an email and contact support.

Greg McKaskle
0 Kudos
Message 2 of 3
(2,489 Views)
>> I need some help concerning LabView and COM (ActiveX).>> I'm working on
NT 4.0 with LabView 5.1 and I've written a COM-Client in Visual>> C++ 6.0
which controls LabView.>> I can set the values of normal Controls, Arrays
and Clusters.>> But I'm not able to set values for an array of clusters.>>
Does anybody know how to do this ?>> Or is it impossible ?>> >>With no more
information, the my answer is, I'm not sure. It is generally>possible to
set controls by constructing a matching Variant. Make the>array a safe-array,
the cluster a safe-array, and the elements of the>cluster be variants of
compatible types to what is in the array.>>If you can't get it to work from
this, you may want to include the>LV datatype in an email and contact support.>>

Please allow
me to get more precise.

For my testings I used a cluster with just one element (type double)
in an one-dim array with just this cluster as only element.

A LV-Cluster is represented as an array of variants in COM.
So I have an array of arrays. With an array beeing no datatype
I don't know how to put an array into an array to
construct a variant to pass to LV.

How can I solve this?

Thanks for help.
Ralf Erdmann
0 Kudos
Message 3 of 3
(2,489 Views)