Keysight VISA.NET Help
MemoryAllocate(Int64,Boolean) Method



The size of the allocated memory in bytes.
The entire allocated region must be in the 32-bit address range.
Allocate memory from the device’s memory region.
Syntax
'Declaration
 
Public Overloads Function MemoryAllocate( _
   ByVal size As Long, _
   ByVal require32BitRegion As Boolean _
) As Long
'Usage
 
Dim 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
) 

Parameters

size
The size of the allocated memory in bytes.
require32BitRegion
The entire allocated region must be in the 32-bit address range.

Return Value

The offset of the allocated device memory.
Remarks

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.

Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025