02-17-2009 12:10 AM
how to allocate memory in labVIEW?
one way that i knew is through array, some other is way is there? what are the privilege of that.
Is the memory allocated can be accessed for DMA operation, how to get the start address of the buffer allocated?
and i need to dynamically increase the buffer size up to 32MB, is that possible?
-Jagan
02-17-2009 01:29 AM
2716jag wrote:how to allocate memory in labVIEW?
one way that i knew is through array, some other is way is there? what are the privilege of that.
Is the memory allocated can be accessed for DMA operation, how to get the start address of the buffer allocated?
and i need to dynamically increase the buffer size up to 32MB, is that possible?
-Jagan
DMA operations are a kernel mode privileged operation. You can't easily hand down a user space memory buffer to a kernel driver to be directly used as DMA buffer, certainly not a LabVIEW allocated handle since you don't usually control the lifetime of such buffers, but LabVIEW does for you, not knowing about it if you hand down one of its memory buffers to a kernel driver to be used asynchronously.
Such things really need to be done on C level at least. An intermediate DLL doing all the gory details and providing a proper API to be called by LabVIEW is mandatory for such tasks.
Rolf Kalbermatter