06-22-2010 09:31 AM
I searched the CVI 2009 help for CNVSetArrayDataValue( ) function and I found:
int CNVSetArrayDataValue (CNVData data, CNVDataType type, const void *array, size_t numberOfDimensions, size_t dimensions);
...
dimensions size_t The array dimensions of the network variable data. The length of the array you pass for this parameter must be greater than or equal to the value specified by the numberOfDimensions parameter
but during compilation I have the error expected 'pointer to size_t'
So I think this is an error in the documentation.
Could someone confirm this?
Solved! Go to Solution.
06-22-2010 10:18 AM
Hi vix,
You are correct. It does look like the documentation is wrong. The last parameter should be an array (size_t dimensions[]).
Sorry about that.
Luis
06-23-2010 02:22 AM
Hi Luis,
I noticed that the documentation is wrong also for other CNV functions (for example the last parameter of CNVSetScalarDataValue( ) isn't a void *value, but a value matching the CNVDataType).
Could you fix these issues for the next CVI release, please?
06-23-2010 02:12 PM
Thanks again, Vix.
This one is actually a larger problem. The documentation is correct in the CNVSetScalarDataValue function panel, but somehow, when the online help was generated from the function panel help, all va_list parameters seem to have been generated as void *, instead of any type. For now, when in doubt, please give precendence to the documentation in the function panels.
Both this, and the incorrect documentation for CNVSetArrayDataValue, are very serious problems that are definitely being fixed for the next version.
My apologies.
Luis