12-28-2005 10:05 AM
Function DChannel.GetDataDouble( StartIndex As Long, Count As Long,
Data As Double() ) As Long
Copies the specified samples in an array of 8Byte real numbers.
Parameters
| StartIndex |
Index of the 1st sample to copy. The first sample in a channel has an index of 1. |
| Count |
Number of samples to copy. |
| Data |
Array to receive the values. See remarks section. |
Return Value
Number of valid samples in <Data>. May be smaller than <count>, when there are not enough samples in the channel (StartIndex + Count -1 > Length).
The problem and also question is why the parameter Data apears as a variant when I use a invoke node for the above method (should be double()??)
When using large Data arrays the libraries are very slow in comparison with VB6. I tested the same functions in VB6 and LabView. In VB6 the COM libraries are very fast! Does anybody know how to improve performance with COM Variants?
Thank you
01-08-2006 07:31 PM