Hi All,
I am working with the network variables concept between Labwindows CVI and Labview. I have Structures such as
typedef struct TestData
{
int ID;
char ChlName[50];
unsigned char Stat;
}TestData_t;
TestData_t stHwInfo[20];
Iam creating an array of structure. I want to pass this Structure Array to Labview Program from Labwindows. Can any one tell me what is the best way to work with this.
I was able to send a single structure data in the following way:
CNVData dataStruct;
CNVData data2[3];
TestData_t TestData;
TestData.ID =1;
TestData.ChlName =" DEV1\AO1";
TestData.Stat =1;
CNVCreateScalarDataValue(&data2[0], CNVInt8, TestData.ID);
CNVCreateScalarDataValue(&data2[1], CNVString, TestData.ChlName);
CNVCreateScalarDataValue(&data2[2], CNVBool, TestData.Stat);
CNVCreateStructDataValue(&dataStruct, data2, 3);
CNVWrite (writer2, dataStruct, 100);
My Labview program was able to read it the information.
Now I have an array of 20 Structures which I want to pass to the Labview Program using Network Variables at a time.
Thanks in advance
Ramesh