MemoryAllocate Method

NI-VisaNS .NET Class Library Help for Visual Studio 2010

Edition Date: August 2012

Part Number: 370627F-01

»View Product Info
Download Help (Windows Only)

VxiSession Class See Also


NOTE: This method is obsolete.

Allocates memory from the memory region of a device.

Namespace: NationalInstruments.VisaNS

Assembly: NationalInstruments.VisaNS (in NationalInstruments.VisaNS.dll) Version: 13.0.40.167

Syntax

Visual Basic (Declaration)
<ObsoleteAttribute("Use MemoryAllocate64BitBusAddress to achieve similar functionality for both 32-bit and 64-bit processes.")> _
Public Function MemoryAllocate ( _
	size As Integer _
) As Integer

C#
[ObsoleteAttribute("Use MemoryAllocate64BitBusAddress to achieve similar functionality for both 32-bit and 64-bit processes.")]
public int MemoryAllocate(
	int size
)

Parameters

size
Type: System.Int32
Size of the allocation.

Return Value

Offset of the allocated device memory.

Exceptions

ExceptionCondition
VisaException The NI-VISA driver returned an error as a result of calling this method.
ArgumentException size is invalid.
DllNotFoundException The NI-VISA driver library cannot be found.
EntryPointNotFoundException A required operation in the NI-VISA driver library cannot be found.
ObjectDisposedException This member is called after the Dispose method is called directly from code or indirectly through a finalizer.

Remarks

Use MemoryAllocate64BitBusAddress to achieve similar functionality for both 32-bit and 64-bit processes.

See Also

Reference

VxiSession Class

NationalInstruments.VisaNS Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful