LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CNVSetArrayDataValue prototype

Solved!
Go to solution

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?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 4
(3,237 Views)

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

0 Kudos
Message 2 of 4
(3,227 Views)

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?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 3 of 4
(3,202 Views)
Solution
Accepted by topic author vix

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

Message 4 of 4
(3,183 Views)