06-21-2005 07:23 AM
@rolfk wrote:
While you may feel this is logical and anything else would be stupid I find this a remarkable piece of optimization which almost certainly wasn't present in earlier versions maybe even in 6.x but quite sure in 5.x. I don't say your method wouldn't seem to work in those versions, but in order to be able to reuse the array buffer in the next iteration LabVIEW would simply have created a new array buffer in Array Subset and copied all the data necessary, only to create even a new copy for the front panel control in really old versions.
Well it is not irrelevant as far as the original poster was concerned, since it was exactly this copying of data he wanted to avoid.
06-26-2005 04:23 AM
06-27-2005 09:29 AM
06-28-2005 07:12 AM
@enrico Segre wrote:
breaking the relevant pieces in useful sub vi
It is fine for me to read the buffer using the labview wire, to free the buffer afterwards using the handle, but I need a dull pointer to pass to the grabber DLL, along with the hope (reasonable, I in the present version, I understand), that Labview dosn't relocate this buffer.
However, this always returns me 0 in pointer. What am I doing wrong?
pointer is a pass-by-value parameter, and as such cannot return a value. You probably want something like:
int CreateBuffer(..., int* pPointer)
{
...
*pPointer=(int)pBuffer
}
06-29-2005 08:20 AM