01-27-2007 10:40 PM
01-29-2007 09:19 AM
I could figure it out ...
In .NET, there are no variants anymore - everything derives from "object" and so we need to create an array of object - each object in this array being a "field" of our cluster.
Let's consider a cluster that contains 3 numeric (double), we would control it from C# in the following manner :
//settings cluster [cluster = array of objects] object[] myCluster; //declare settings "cluster"myCluster =
new object[3];myCluster
[0] = new double(); //myCluster
[1] = new double(); //myCluster
[2] = new double(); // //assign values to settings clustermyCluster
[0] = 3.14; //myCluster
[1] = 1.2; //myCluster
[2] = 2.3; ////Write value to the LabVIEW cluster
myVI.SetControlValue("<clusterName>", myCluster);
Enjoy...