Keysight VISA.NET Help
MemoryAllocate(Int64) Method



The size of the allocated memory in bytes.
Allocates memory from the device’s memory region.
Syntax
'Declaration
 
Public Overloads Function MemoryAllocate( _
   ByVal size As Long _
) As Long
'Usage
 
Dim instance As PxiMemorySession
Dim size As Long
Dim value As Long
 
value = instance.MemoryAllocate(size)
public long MemoryAllocate( 
   long size
)
public:
int64 MemoryAllocate( 
   int64 size
) 

Parameters

size
The size of the allocated memory in bytes.

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 that has been allocated by the operating system. The memory block is 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