| Keysight.Visa Namespace > PxiMemorySession Class > MemoryAllocate Method : MemoryAllocate(Int64,Boolean) Method |
'DeclarationPublic Overloads Function MemoryAllocate( _ ByVal size As Long, _ ByVal require32BitRegion As Boolean _ ) As Long
'UsageDim instance As PxiMemorySession Dim size As Long Dim require32BitRegion As Boolean Dim value As Long value = instance.MemoryAllocate(size, require32BitRegion)
public long MemoryAllocate( long size, bool require32BitRegion )
public: int64 MemoryAllocate( int64 size, bool require32BitRegion )
The offset returned for a PXI memory session is an absolute physical address of a contiguous block of memory which has been allocated by the operating system. The memory block is also locked, meaning it will not be swapped out. A common use for this memory is to do user-mode DMA to or from a PXI device.
Both the high-level memory access functions defined in RegisterBasedSession (InXX, OutXX, MoveInXX, MoveOutXX) and the low-level memory access functions defined in the MemoryMap class (PeekXX, PokeXX) can be used to access the allocated memory.
Current with Keysight IO Libraries Suite 18