01-28-2010 10:44 PM
I found a CNVStruct in CNVDataType.
When calling "CNVCreateScalarDataValue" I always get a error message "Data type is invalid".
typedef struct TestType_t {
int float2[2];
unsigned char Data[16];
} TestType;
TestType TestData = {{1,2},"23456"};
CNVCreateScalarDataValue(&data, CNVStruct, &TestData);
Does Network Variable only support primitive data types??
Can I transfer C structure data?
Solved! Go to Solution.
01-29-2010 08:17 AM
Hey Vincent -
You can send structure types, but you have to build them up. Because your structure contains arrays, you have even more building to do. It would look something like this:
For more examples, check out the example 3DSimWriter. Let me know if you have any questions!
NickB
National Instruments